9 #ifndef mrpt_synch_semaphore_H
10 #define mrpt_synch_semaphore_H
45 void release(
unsigned int increaseCount = 1);
A semaphore for inter-thread synchronization.
virtual ~CSemaphore()
Dtor.
mrpt::utils::CReferencedMemBlock m_data
CSemaphore(unsigned int initialCount, unsigned int maxCount)
Creates a semaphore.
bool waitForSignal(unsigned int timeout_ms=0)
Blocks until the count of the semaphore to be non-zero.
void release(unsigned int increaseCount=1)
Increments the count of the semaphore by a given amount.
Represents a memory block (via "void*") that can be shared between several objects through copy opera...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.