24 #ifndef SURGSIM_FRAMEWORK_BARRIER_H 25 #define SURGSIM_FRAMEWORK_BARRIER_H 27 #include <boost/thread/mutex.hpp> 28 #include <boost/thread/condition_variable.hpp> 61 bool wait(
bool success);
Definition: CompoundShapeToGraphics.cpp:29
size_t m_threshold
Definition: Barrier.h:66
bool m_success
Definition: Barrier.h:69
size_t m_generation
Definition: Barrier.h:68
boost::condition_variable m_cond
Definition: Barrier.h:65
bool wait(bool success)
Waits until all count threads have called wait.
Definition: Barrier.cpp:35
boost::mutex m_mutex
Definition: Barrier.h:64
size_t m_count
Definition: Barrier.h:67
Barrier(size_t count)
Construct the barrier.
Definition: Barrier.cpp:26
Barrier class, synchronize a set of threads to wait at a common point, all threads will wait at Barri...
Definition: Barrier.h:45
bool m_successResult
Definition: Barrier.h:70
The header that provides the assertion API.