Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
rp::hal::Event Class Reference

#include <event.h>

List of all members.

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 41 of file event.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
EVENT_OK 
EVENT_TIMEOUT 
EVENT_FAILED 

Definition at line 45 of file event.h.


Constructor & Destructor Documentation

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

Definition at line 52 of file event.h.

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

Definition at line 68 of file event.h.


Member Function Documentation

void rp::hal::Event::release ( ) [inline, protected]

Definition at line 170 of file event.h.

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

Definition at line 73 of file event.h.

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

Definition at line 101 of file event.h.


Member Data Documentation

pthread_mutex_t rp::hal::Event::_cond_locker [protected]

Definition at line 184 of file event.h.

pthread_cond_t rp::hal::Event::_cond_var [protected]

Definition at line 183 of file event.h.

Definition at line 185 of file event.h.

bool rp::hal::Event::_isAutoReset [protected]

Definition at line 186 of file event.h.


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


rplidar_ros
Author(s):
autogenerated on Fri Aug 28 2015 12:46:43