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__ MutexMonitor(Mutex &mutex)
Lock the mutex.
~MutexMonitor(void)
Unlock the mutex.
MutexMonitor use Resource Acquisition Is Initialization (RAII) to mutex lock blocks of code...
void lock(void)
Lock the mutex and block until it becomes available.
Mutex(void)
Create unnamed mutex.
Mutex is a cross platform wrapper for mutexes.
~Mutex(void)
Destroy mutex.
void unlock(void)
Unlock the mutex.