![]() |
ros2_control - humble
|
A class template that provides a pthread mutex with the priority inheritance protocol. More...
#include <mutex.hpp>
Public Types | |
| using | native_handle_type = pthread_mutex_t * |
| using | type = MutexType |
| using | robustness = MutexRobustness |
Public Member Functions | |
| mutex (const mutex &)=delete | |
| mutex & | operator= (const mutex &)=delete |
| native_handle_type | native_handle () noexcept |
| void | lock () |
| void | unlock () noexcept |
| bool | try_lock () |
A class template that provides a pthread mutex with the priority inheritance protocol.
| MutexType | The type of the mutex. It can be one of the following: PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_RECURSIVE, PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_DEFAULT |
| MutexRobustness | The robustness of the mutex. It can be one of the following: PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST |