|
GraphLab: Distributed Graph-Parallel API
2.1
|
#include <graphlab/parallel/pthread_tools.hpp>
Public Member Functions | |
| cancellable_barrier (size_t numthreads) | |
| Construct a barrier which will only fall when numthreads enter. | |
| void | operator= (const cancellable_barrier &m) |
| void | resize_unsafe (size_t numthreads) |
| 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 585 of file pthread_tools.hpp.
|
inline |
Definition at line 621 of file pthread_tools.hpp.