Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
rp::hal::Event Class Reference

#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
 

Detailed Description

Definition at line 38 of file event.h.

Member Enumeration Documentation

anonymous enum
Enumerator
EVENT_OK 
EVENT_TIMEOUT 
EVENT_FAILED 

Definition at line 42 of file event.h.

Constructor & Destructor Documentation

rp::hal::Event::Event ( bool  isAutoReset = true,
bool  isSignal = false 
)
inline

Definition at line 49 of file event.h.

rp::hal::Event::~Event ( )
inline

Definition at line 65 of file event.h.

Member Function Documentation

void rp::hal::Event::release ( )
inlineprotected

Definition at line 167 of file event.h.

void rp::hal::Event::set ( bool  isSignal = true)
inline

Definition at line 70 of file event.h.

unsigned long rp::hal::Event::wait ( unsigned long  timeout = 0xFFFFFFFF)
inline

Definition at line 98 of file event.h.

Member Data Documentation

pthread_mutex_t rp::hal::Event::_cond_locker
protected

Definition at line 181 of file event.h.

pthread_cond_t rp::hal::Event::_cond_var
protected

Definition at line 180 of file event.h.

bool rp::hal::Event::_is_signalled
protected

Definition at line 182 of file event.h.

bool rp::hal::Event::_isAutoReset
protected

Definition at line 183 of file event.h.


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


rplidar_ros
Author(s):
autogenerated on Wed Jan 1 2020 04:01:40