Class real_time_tools::RealTimeMutex

class real_time_tools::RealTimeMutex

This class uses the real-time API of xenomai and posix to implement mutexes.

Public Functions

inline RealTimeMutex(std::string mutex_id = "")

Construct a new RealTimeMutex object.

inline ~RealTimeMutex()

Destroy the RealTimeMutex object.

inline void lock()

lock the mutex.

inline void unlock()

unlock the mutex

Private Members

RealTimeMutex_t mutex_

This is the object which type chenge according to the OS this code is compiled.

std::string mutex_id_

Save the mutex id internally.