Nebula
|
#include <linuxevent.h>
Linux implementation of Event.
Uses pthread condition variables.
(C) 2010 Radon Labs GmbH (C) 2013-2018 Individual contributors, see AUTHORS file
Public Member Functions | |
LinuxEvent (bool manualReset=false) | |
constructor | |
LinuxEvent (LinuxEvent &&ev) | |
Move constructor. | |
~LinuxEvent () | |
destructor | |
void | Signal () |
signal the event | |
void | Wait () const |
wait for the event to become signalled, resets the event | |
bool | WaitTimeout (int ms) const |
wait for the event with timeout in millisecs, resets the event | |
bool | Peek () const |
check if event is signaled | |
void | Reset () |
manually reset the event | |
bool | IsManual () const |
Returns true if event is manually reset. | |
Private Types | |
enum | EventStatus { SIGNAL_NONE = 0 , SIGNAL_ONE = 1 , SIGNAL_ALL = 2 } |
Private Attributes | |
pthread_mutex_t | mutex |
pthread_cond_t | cond |
bool | manualReset |
volatile EventStatus | status |
|
private |
|
inline |
constructor
|
inline |
Move constructor.
|
inline |
destructor
|
inline |
Returns true if event is manually reset.
|
inline |
check if event is signaled
|
inline |
manually reset the event
|
inline |
signal the event
|
inline |
wait for the event to become signalled, resets the event
|
inline |
wait for the event with timeout in millisecs, resets the event
|
mutableprivate |
|
private |
|
mutableprivate |
|
mutableprivate |