static uint32_t increment(volatile uint32_t &value, uint32_t byValue=1)
Increment uint32 value and return its value.
volatile unsigned int exited
bool wait()
Waits on barrier.
volatile unsigned int entered
void broadcast()
wake ups all waiting threads on this condition, associated mutex should protect broadcast
void wait(Mutex &mutex)
Blocks current thread until signaled/broadcasted, associated mutex should protect wait.
void unlock()
Unlocks this mutex.
void lock()
Locks the mutex, additionally mutex locks will block until other locks have been unlocked.