8#ifndef __LIDAR_MUTEX_H__
9#define __LIDAR_MUTEX_H__
20LT_BEGIN_LIDAR_NAMESPACE
42 pthread_mutex_t m_mutex;
Mutex is a cross platform wrapper for mutexes.
Mutex(void)
Create unnamed mutex.
~Mutex(void)
Destroy mutex.
void unlock(void)
Unlock the mutex.
void lock(void)
Lock the mutex and block until it becomes available.
MutexMonitor use Resource Acquisition Is Initialization (RAII) to mutex lock blocks of code.
~MutexMonitor(void)
Unlock the mutex.
MutexMonitor(Mutex &mutex)
Lock the mutex.