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

#include <locker.h>

List of all members.

Public Types

enum  LOCK_STATUS { LOCK_OK = 1, LOCK_TIMEOUT = -1, LOCK_FAILED = 0 }

Public Member Functions

pthread_mutex_t * getLockHandle ()
Locker::LOCK_STATUS lock (unsigned long timeout=0xFFFFFFFF)
 Locker ()
void unlock ()
 ~Locker ()

Protected Member Functions

void init ()
void release ()

Protected Attributes

pthread_mutex_t _lock

Detailed Description

Definition at line 40 of file locker.h.


Member Enumeration Documentation

Enumerator:
LOCK_OK 
LOCK_TIMEOUT 
LOCK_FAILED 

Definition at line 43 of file locker.h.


Constructor & Destructor Documentation

Definition at line 50 of file locker.h.

Definition at line 57 of file locker.h.


Member Function Documentation

pthread_mutex_t* rp::hal::Locker::getLockHandle ( ) [inline]

Definition at line 126 of file locker.h.

void rp::hal::Locker::init ( ) [inline, protected]

Definition at line 135 of file locker.h.

Locker::LOCK_STATUS rp::hal::Locker::lock ( unsigned long  timeout = 0xFFFFFFFF) [inline]

Definition at line 62 of file locker.h.

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

Definition at line 144 of file locker.h.

void rp::hal::Locker::unlock ( ) [inline]

Definition at line 111 of file locker.h.


Member Data Documentation

pthread_mutex_t rp::hal::Locker::_lock [protected]

Definition at line 159 of file locker.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