ManualResetEvent: Reset
using System;
using System.Threading;
class Reset {
[STAThread]
static void Main() {
ManualResetEvent manRE;
manRE = new ManualResetEvent(true);
bool state = manRE.WaitOne(1000, true);
Console.WriteLine(state);
manRE.Reset();
state = manRE.WaitOne(5000, true);
Console.WriteLine(state);
}
}
Related examples in the same category