TakeThreadOwnership() 개인적인 메소드

private TakeThreadOwnership ( ) : void
리턴 void
예제 #1
0
파일: EditorTree.cs 프로젝트: nomada2/RTVS
 /// <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();
 }