9 #ifndef mrpt_synch_semaphore_H
10 #define mrpt_synch_semaphore_H
14 #include <condition_variable>
36 unsigned long m_count{ 0 };
49 bool waitForSignal(
unsigned int timeout_ms = 0 );
52 void release(
unsigned int increaseCount = 1);
A semaphore for inter-thread synchronization.
std::condition_variable m_condition
CSemaphore(const CSemaphore &o)
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.