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

RealTimeMutex(std::string mutex_id = "")

Construct a new RealTimeMutex object.

~RealTimeMutex()

Destroy the RealTimeMutex object.

void lock()

lock the mutex.

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.