|
Nebula
|
#include <posixevent.h>
Posix implmentation of an event synchronization object.
(C) 2006 Radon Labs GmbH (C) 2013-2018 Individual contributors, see AUTHORS file
Public Member Functions | |
| PosixEvent (bool manualReset=false) | |
| constructor | |
| PosixEvent (PosixEvent &&ev) | |
| Move constructor. | |
| ~PosixEvent () | |
| destructor | |
| void | Signal () |
| signal the event | |
| void | Reset () |
| reset the event (only if manual reset) | |
| void | Wait () const |
| wait for the event to become signalled | |
| bool | WaitTimeout (int ms) const |
| wait for the event with timeout in millisecs | |
| bool | Peek () const |
| check if event is signalled | |
| bool | IsManual () const |
| Returns true if event is manually reset. | |
Private Attributes | |
| bool | manual |
| sem_t * | semaphore |
|
inline |
constructor
manual reset is not used, since it's only used for win32events
|
inline |
Move constructor.
|
inline |
destructor
|
inline |
Returns true if event is manually reset.
|
inline |
check if event is signalled
This checks if the event is signalled and returnes immediately.
|
inline |
reset the event (only if manual reset)
|
inline |
signal the event
|
inline |
wait for the event to become signalled
|
inline |
wait for the event with timeout in millisecs
Waits for the event to become signaled with a specified timeout in milli seconds.
If the method times out it will return false, if the event becomes signalled within the timeout it will return true.
|
private |
|
private |