TakeThreadOwnership() private method

private TakeThreadOwnership ( ) : void
return void
Exemplo n.º 1
0
 /// <summary>
 /// Makes current thread owner of the tree.
 /// Normally only one thread can access the tree.
 /// </summary>
 internal void TakeThreadOwnerShip()
 {
     _ownerThread = Thread.CurrentThread.ManagedThreadId;
     TreeUpdateTask.TakeThreadOwnership();
     TreeLock.TakeThreadOwnership();
 }