CurrentThread() public static method

public static CurrentThread ( ) : Sharpen.Thread
return Sharpen.Thread
コード例 #1
0
 public void Run()
 {
     lock (this) {
         thread = Thread.CurrentThread();
     }
     try {
         if (!canceled)
         {
             Action.Run();
         }
     } finally {
         lock (this) {
             thread = null;
             doneEvent.Set();
             completed = true;
         }
     }
 }