CmdMessenger 4.0.0 CmdMessenger is a serial port messaging library for the .Net / Mono Platform.

- Main Page
- Packages
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

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

CommandMessenger.EventWaiter.EventWaiter | ( |  | ) |

start blocked (waiting for signal)

CommandMessenger.EventWaiter.EventWaiter | ( | bool | set | ) |

start blocked or signalled.

Parameters:

  set | If true, first Wait will directly continue

## Member Function Documentation

void CommandMessenger.EventWaiter.Reset | ( |  | ) |

Resets signal, will block threads entering Wait function.

void CommandMessenger.EventWaiter.Set | ( |  | ) |

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:

  timeOut | time-out in ms

Returns:

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

- D:/My Documents/Github/Arduino/Own Arduino libraries/CmdMessenger/Arduino-CmdMessenger/extras/CSharp/CommandMessenger/EventWaiter.cs