#include <event.h>
Public Types | |
enum | { EVENT_OK = 1, EVENT_TIMEOUT = -1, EVENT_FAILED = 0 } |
Public Member Functions | |
Event (bool isAutoReset=true, bool isSignal=false) | |
void | set (bool isSignal=true) |
unsigned long | wait (unsigned long timeout=0xFFFFFFFF) |
~Event () | |
Protected Member Functions | |
void | release () |
Protected Attributes | |
pthread_mutex_t | _cond_locker |
pthread_cond_t | _cond_var |
bool | _is_signalled |
bool | _isAutoReset |
anonymous enum |
rp::hal::Event::Event | ( | bool | isAutoReset = true , |
bool | isSignal = false |
||
) | [inline] |
rp::hal::Event::~Event | ( | ) | [inline] |
void rp::hal::Event::release | ( | ) | [inline, protected] |
void rp::hal::Event::set | ( | bool | isSignal = true | ) | [inline] |
unsigned long rp::hal::Event::wait | ( | unsigned long | timeout = 0xFFFFFFFF | ) | [inline] |
pthread_mutex_t rp::hal::Event::_cond_locker [protected] |
pthread_cond_t rp::hal::Event::_cond_var [protected] |
bool rp::hal::Event::_is_signalled [protected] |
bool rp::hal::Event::_isAutoReset [protected] |