Turi Create
4.0
|
#include <core/parallel/pthread_tools.hpp>
Public Member Functions | |
cancellable_barrier (size_t numthreads) | |
Construct a barrier which will only fall when numthreads enter. | |
void | cancel () |
void | wait () const |
Wait on the barrier until numthreads has called wait. | |
This is a simple sense-reversing barrier implementation. In addition to standard barrier functionality, this also provides a "cancel" function which can be used to destroy the barrier, releasing all threads stuck in the barrier.
Before you use, see parallel_object_intricacies.
Definition at line 721 of file pthread_tools.hpp.
|
inline |
Definition at line 757 of file pthread_tools.hpp.