12 #ifndef __LIDAR_MUTEX_H__
13 #define __LIDAR_MUTEX_H__
24 LT_BEGIN_LIDAR_NAMESPACE
46 pthread_mutex_t m_mutex;
75 LT_END_LIDAR_NAMESPACE
76 #endif // __LIDAR_MUTEX_H__
Mutex(void)
Create unnamed mutex.
~Mutex(void)
Destroy mutex.
void unlock(void)
Unlock the mutex.
Mutex is a cross platform wrapper for mutexes.
void lock(void)
Lock the mutex and block until it becomes available.
MutexMonitor(Mutex &mutex)
Lock the mutex.
MutexMonitor use Resource Acquisition Is Initialization (RAII) to mutex lock blocks of code...
~MutexMonitor(void)
Unlock the mutex.