ManualResetEvent : ManualResetEvent : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » ManualResetEvent »

 

ManualResetEvent








    
 


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);
    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» ManualResetEvent