24 #ifndef __CORE_THREADING_INTERRUPTIBLE_BARRIER_H_ 25 #define __CORE_THREADING_INTERRUPTIBLE_BARRIER_H_ 27 #include <core/threading/barrier.h> 28 #include <core/utils/refptr.h> 35 class InterruptibleBarrierData;
45 bool wait(
unsigned int timeout_sec,
unsigned int timeout_nanosec);
62 InterruptibleBarrierData *__data;
67 bool __wait_at_barrier;
68 int __num_threads_in_wait_function;
unsigned int count()
Get number of threads this barrier will wait for.
void interrupt()
Interrupt the barrier.
virtual void wait()
Wait for other threads.
bool no_threads_in_wait()
Checks if there are no more threads in the wait() function.
Fawkes library namespace.
virtual ~InterruptibleBarrier()
Destructor.
A barrier is a synchronization tool which blocks until a given number of threads have reached the bar...
InterruptibleBarrier(unsigned int count)
Constructor.
RefPtr< ThreadList > passed_threads()
Get a list of threads that passed the barrier.
RefPtr<> is a reference-counting shared smartpointer.
void reset()
Clears the barrier.
Mutex mutual exclusion lock.
A barrier is a synchronization tool which blocks until a given number of threads have reached the bar...