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

#include <locker.h>

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 38 of file locker.h.

Member Enumeration Documentation

Enumerator
LOCK_OK 
LOCK_TIMEOUT 
LOCK_FAILED 

Definition at line 41 of file locker.h.

Constructor & Destructor Documentation

rp::hal::Locker::Locker ( )
inline

Definition at line 48 of file locker.h.

rp::hal::Locker::~Locker ( )
inline

Definition at line 55 of file locker.h.

Member Function Documentation

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

Definition at line 132 of file locker.h.

void rp::hal::Locker::init ( )
inlineprotected

Definition at line 141 of file locker.h.

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

Definition at line 60 of file locker.h.

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

Definition at line 150 of file locker.h.

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

Definition at line 117 of file locker.h.

Member Data Documentation

pthread_mutex_t rp::hal::Locker::_lock
protected

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