// // Starts the test. // internal static Action Run() { new Controller().Start(0, "c #0"); Action stop = () => { shutdown.Set(); done.WaitOne(); }; return(stop); }
private void Run() { Console.WriteLine("+++unregister thread starts..."); doUnreg.WaitOne(); if (regWait.Unregister()) { Console.WriteLine("+++ WAIT successful unregistered"); } else { Console.WriteLine("+++ Unregister WAIT FAILED!"); } }