#include <pthread_tools.hpp>
Public Member Functions | |
| barrier (size_t numthreads) | |
| Construct a barrier which will only fall when numthreads enter. | |
| void | wait () const |
| Wait on the barrier until numthreads has called wait. | |
| barrier (size_t numthreads) | |
| Construct a barrier which will only fall when numthreads enter. | |
| void | wait () |
| Wait on the barrier until numthreads has called wait. | |
Wrapper around pthread's barrier
In some systems, pthread_barrier is not available. This is a simple sense-reversing barrier implementation
Definition at line 397 of file pthread_tools.hpp.
1.7.1