//
        // Starts the test.
        //

        internal static Action Run()
        {
            new Controller().Start(0, "c #0");
            Action stop = () => {
                shutdown.Set();
                done.WaitOne();
            };

            return(stop);
        }
Esempio n. 2
0
 private void Run()
 {
     Console.WriteLine("+++unregister thread starts...");
     doUnreg.WaitOne();
     if (regWait.Unregister())
     {
         Console.WriteLine("+++ WAIT successful unregistered");
     }
     else
     {
         Console.WriteLine("+++ Unregister WAIT FAILED!");
     }
 }