Exemple #1
0
		public static Sharpen.Thread CurrentThread ()
		{
			if (wrapperThread == null) {
				wrapperThread = new Sharpen.Thread (System.Threading.Thread.CurrentThread);
			}
			return wrapperThread;
		}
Exemple #2
0
 public static Sharpen.Thread CurrentThread()
 {
     if (wrapperThread == null)
     {
         wrapperThread = new Sharpen.Thread(System.Threading.Thread.CurrentThread);
     }
     return(wrapperThread);
 }
Exemple #3
0
 private void InternalRun()
 {
     wrapperThread = this;
     try {
         runnable.Run();
     } catch (Exception exception) {
         Console.WriteLine(exception);
     } finally {
         tgroup.Remove(this);
     }
 }
Exemple #4
0
		private void InternalRun ()
		{
			wrapperThread = this;
			try {
				runnable.Run ();
			} catch (Exception exception) {
				Console.WriteLine (exception);
			} finally {
				tgroup.Remove (this);
			}
		}
Exemple #5
0
 void InternalRun()
 {
     wrapperThread = this;
     try {
         Runnable.Run();
     } catch (Exception exception) {
         System.Diagnostics.Debug.WriteLine(exception);
     } finally {
         tgroup.Remove(this);
     }
 }
Exemple #6
0
 public virtual void  Run()
 {
     wrapperThread = this;
     try {
         runnable.Run();
     } catch (Exception exception) {
         Console.WriteLine(exception);
     } finally {
         tgroup.Remove(this);
     }
 }
Exemple #7
0
 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);
     }
 }
Exemple #8
0
		void InternalRun ()
		{
			wrapperThread = this;
			try {
				Runnable.Run ();
			} catch (Exception exception) {
				System.Diagnostics.Debug.WriteLine (exception);
			} finally {
				tgroup.Remove (this);
			}
		}