ManualResetEvent : ManualResetEvent : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » ManualResetEvent »

 

ManualResetEvent








    
 

using System;
using System.Threading;

class ManualSet{
    [STAThread]
    static void Main(string[] args) {
        ManualResetEvent manRE = new ManualResetEvent(false);
        bool state = manRE.WaitOne(5000, true);
        Console.WriteLine("ManualResetEvent After first WaitOne " + state);

        manRE.Set();
        state = manRE.WaitOne(5000, true);
        Console.WriteLine("ManualResetEvent After second WaitOne " + state);
    }
}
   

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» ManualResetEvent