CallDelegInMainLoop() public method

public CallDelegInMainLoop ( System d ) : EventWaitHandle
d System
return System.Threading.EventWaitHandle
Ejemplo n.º 1
0
        public static void Kill(MovingThread thread)
        {
            EventWaitHandle wh = thread.CallDelegInMainLoop(KillMe);

            wh.WaitOne();
            if (thread.ExceptionHappened != null)
            {
                throw thread.ExceptionHappened;
            }
            wh.Close();
        }
Ejemplo n.º 2
0
Archivo: Main.cs Proyecto: mono/uia2atk
		public static void Kill (MovingThread thread) 
		{
			EventWaitHandle wh = thread.CallDelegInMainLoop (KillMe);
			wh.WaitOne ();
			if (thread.ExceptionHappened != null)
				throw thread.ExceptionHappened;
			wh.Close ();
		}