CmdMessenger  4.0.0
CmdMessenger is a serial port messaging library for the .Net / Mono Platform.
Public Types | Public Member Functions
CommandMessenger.EventWaiter Class Reference

List of all members.

Public Types

enum  WaitState { TimeOut, Normal }

Public Member Functions

 EventWaiter ()
 start blocked (waiting for signal)
 EventWaiter (bool set)
 start blocked or signalled.
WaitState WaitOne (int timeOut)
 Wait function. Blocks until signal is set or time-out.
void Set ()
 Sets signal, will unblock thread in Wait function.
void Reset ()
 Resets signal, will block threads entering Wait function.

Constructor & Destructor Documentation

start blocked (waiting for signal)

start blocked or signalled.

Parameters:
setIf true, first Wait will directly continue

Member Function Documentation

Resets signal, will block threads entering Wait function.

Sets signal, will unblock thread in Wait function.

WaitState CommandMessenger.EventWaiter.WaitOne ( int  timeOut)

Wait function. Blocks until signal is set or time-out.

Parameters:
timeOuttime-out in ms
Returns:

The documentation for this class was generated from the following file: