ros2_control - jazzy
Loading...
Searching...
No Matches
realtime_tools::detail::mutex< MutexType, MutexRobustness > Class Template Reference

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 ()

Detailed Description

template<typename MutexType, typename MutexRobustness>
class realtime_tools::detail::mutex< MutexType, MutexRobustness >

A class template that provides a pthread mutex with the priority inheritance protocol.

Template Parameters
MutexTypeThe type of the mutex. It can be one of the following: PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_RECURSIVE, PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_DEFAULT
MutexRobustnessThe robustness of the mutex. It can be one of the following: PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST

The documentation for this class was generated from the following file: