17 #ifndef COM_BORA_SOFTWARE__BALAU_CONCURRENT__CYCLIC_BARRIER 18 #define COM_BORA_SOFTWARE__BALAU_CONCURRENT__CYCLIC_BARRIER 26 namespace Concurrent {
54 std::lock_guard<std::mutex> lock(mutex);
66 private:
static Logger & LOG();
68 private: std::mutex mutex;
79 #endif // COM_BORA_SOFTWARE__BALAU_CONCURRENT__CYCLIC_BARRIER CyclicBarrier(unsigned int count_)
Create a cyclic barrier with the specified count.
Definition: CyclicBarrier.hpp:41
The root Balau namespace.
Definition: ApplicationConfiguration.hpp:23
Traditional semaphore synchronisation object.
Traditional semaphore synchronisation object.
Definition: Semaphore.hpp:27
The main logger class.
Definition: Logger.hpp:92
A synchronising barrier that can be configured for an arbitrary number of threads.
Definition: CyclicBarrier.hpp:37
void countdown()
Count down the barrier, blocking if the count has not reached 0.
void reconfigure(unsigned int count_)
Reconfigure the latch to count the specified number of times.
Definition: CyclicBarrier.hpp:53