Main MRPT website > C++ reference for MRPT 1.5.7
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
rp::hal::Locker Class Reference

Detailed Description

Definition at line 38 of file locker.h.

#include <rplidar/src/hal/locker.h>

Public Types

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

Public Member Functions

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

Protected Member Functions

void init ()
 
void release ()
 

Protected Attributes

HANDLE _lock
 

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.

References _lock, and init().

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

Definition at line 55 of file locker.h.

References release().

Member Function Documentation

HANDLE rp::hal::Locker::getLockHandle ( )
inline

Definition at line 127 of file locker.h.

References _lock.

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

Definition at line 141 of file locker.h.

References _lock, and FALSE.

Referenced by Locker().

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

Definition at line 150 of file locker.h.

References _lock, and unlock().

Referenced by ~Locker().

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

Member Data Documentation

HANDLE rp::hal::Locker::_lock
protected

Definition at line 163 of file locker.h.

Referenced by getLockHandle(), init(), lock(), Locker(), release(), and unlock().




Page generated by Doxygen 1.8.11 for MRPT 1.5.7 Git: 2190203 Tue May 15 02:01:15 2018 +0200 at miƩ may 16 12:40:16 CEST 2018