public static Sharpen.SharpenThread CurrentThread()
 {
     if (wrapperThread == null)
     {
         wrapperThread = new Sharpen.SharpenThread(System.Threading.Thread.CurrentThread);
     }
     return(wrapperThread);
 }
 private void InternalRun()
 {
     wrapperThread = this;
     try {
         runnable.Run();
     } catch (Exception exception) {
         Console.WriteLine(exception);
     } finally {
         tgroup.Remove(this);
     }
 }
 public static bool Interrupted()
 {
     if (Sharpen.SharpenThread.wrapperThread == null)
     {
         return(false);
     }
     Sharpen.SharpenThread wrapperThread = Sharpen.SharpenThread.wrapperThread;
     lock (wrapperThread) {
         bool interrupted = Sharpen.SharpenThread.wrapperThread.interrupted;
         Sharpen.SharpenThread.wrapperThread.interrupted = false;
         return(interrupted);
     }
 }
 public static Sharpen.SharpenThread CurrentThread ()
 {
     if (wrapperThread == null) {
         wrapperThread = new Sharpen.SharpenThread (System.Threading.Thread.CurrentThread);
     }
     return wrapperThread;
 }
 private void InternalRun ()
 {
     wrapperThread = this;
     try {
         runnable.Run ();
     } catch (Exception exception) {
         Console.WriteLine (exception);
     } finally {
         tgroup.Remove (this);
     }
 }