public static void Kill(MovingThread thread) { EventWaitHandle wh = thread.CallDelegInMainLoop(KillMe); wh.WaitOne(); if (thread.ExceptionHappened != null) { throw thread.ExceptionHappened; } wh.Close(); }
public static void Kill (MovingThread thread) { EventWaitHandle wh = thread.CallDelegInMainLoop (KillMe); wh.WaitOne (); if (thread.ExceptionHappened != null) throw thread.ExceptionHappened; wh.Close (); }