ManualResetEvent.WaitOne : ManualResetEvent « Development Class « C# / C Sharp






ManualResetEvent.WaitOne

 


using System;
using System.Threading;

public class NonSignaledManual {
    public static void Main() {
        ManualResetEvent mansig = new ManualResetEvent(false);
        Console.WriteLine("ManualResetEvent Before WaitOne ");
        bool b = mansig.WaitOne(1000, false);
        Console.WriteLine("ManualResetEvent After WaitOne " + b);
    }
}

 








Related examples in the same category

1.ManualResetEvent: Set
2.ManualResetEvent: Reset