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