1 #ifndef CARMA_UTIL_MULTISHOTBARRIER_H
2 #define CARMA_UTIL_MULTISHOTBARRIER_H
4 #include "carma/util/PthreadCond.h"
5 #include "carma/util/PthreadMutex.h"
45 void reset(
size_t satisfyCount );
63 size_t activeWaiters_;
MultiShotBarrier()
Default constructor.
void wait()
Wait until all other waiters have reached this barrier.
A simple wrapper class that makes use of ::pthread_cond_t easier in a C++ world.
void reset(size_t satisfyCount)
Reset the satisyCount to reuse barrier.
virtual ~MultiShotBarrier()
Destructor.
A simple wrapper class that makes use of ::pthread_mutex_t easier in a C++ world. ...