MultiShotBarrier class.
More...
#include <carma/util/MultiShotBarrier.h>
MultiShotBarrier class.
Variant of OneShotBarrier modified to support an arbitrary number of shots with a per-shot satisfy count.
Definition at line 15 of file MultiShotBarrier.h.
carma::util::MultiShotBarrier::MultiShotBarrier |
( |
size_t |
initialSatisfyCount | ) |
|
|
explicit |
Constructor.
- Parameters
-
initialSatisfyCount | Satisfy count for first wait. |
- Exceptions
-
- See Also
- reset
carma::util::MultiShotBarrier::MultiShotBarrier |
( |
| ) |
|
|
explicit |
Default constructor.
If this constructor is used, the user must call reset with a satisfy count prior to waiting.
virtual carma::util::MultiShotBarrier::~MultiShotBarrier |
( |
| ) |
|
|
virtual |
void carma::util::MultiShotBarrier::reset |
( |
size_t |
satisfyCount | ) |
|
Reset the satisyCount to reuse barrier.
- Parameters
-
satisfyCount | New satisfy count. |
- Exceptions
-
void carma::util::MultiShotBarrier::wait |
( |
| ) |
|
Wait until all other waiters have reached this barrier.
The documentation for this class was generated from the following file: