C# Class Recognos.Core.ResetEvent

A wait handle like struct witch combines an AutoResetEvent and a ManualResetEvent
Inheritance: IDisposable
Exibir arquivo Open project: Recognos/Recognos.Core

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Reset ( ) : void

Reset the event to the non-signaled state

ResetEvent ( ) : System

Initializes a new instance of the ResetEvent class.

ResetEvent ( bool initialState ) : System

Initializes a new instance of the ResetEvent class.

Wait ( ) : void

Waits for a signal

WakeAll ( ) : void

Wake all waiting threads. This method does not reset the event. The Reset method must be called to reset the event.

WakeOne ( ) : void

Wake one waiting thread

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Reset() public method

Reset the event to the non-signaled state
public Reset ( ) : void
return void

ResetEvent() public method

Initializes a new instance of the ResetEvent class.
public ResetEvent ( ) : System
return System

ResetEvent() public method

Initializes a new instance of the ResetEvent class.
public ResetEvent ( bool initialState ) : System
initialState bool The initial state of the event.
return System

Wait() public method

Waits for a signal
public Wait ( ) : void
return void

WakeAll() public method

Wake all waiting threads. This method does not reset the event. The Reset method must be called to reset the event.
public WakeAll ( ) : void
return void

WakeOne() public method

Wake one waiting thread
public WakeOne ( ) : void
return void