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

Detailed Description

Definition at line 39 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

◆ LOCK_STATUS

Enumerator
LOCK_OK 
LOCK_TIMEOUT 
LOCK_FAILED 

Definition at line 42 of file locker.h.

Constructor & Destructor Documentation

◆ Locker()

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

Definition at line 49 of file locker.h.

References _lock, and init().

◆ ~Locker()

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

Definition at line 57 of file locker.h.

References release().

Member Function Documentation

◆ getLockHandle()

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

Definition at line 127 of file locker.h.

References _lock.

◆ init()

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

Definition at line 133 of file locker.h.

References _lock, and FALSE.

Referenced by Locker().

◆ lock()

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

◆ release()

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

Definition at line 142 of file locker.h.

References _lock, and unlock().

Referenced by ~Locker().

◆ unlock()

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

Member Data Documentation

◆ _lock

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

Definition at line 155 of file locker.h.

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




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at lun oct 28 00:14:14 CET 2019