GraphLab: Distributed Graph-Parallel API  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
graphlab::cancellable_barrier Class Reference

#include <graphlab/parallel/pthread_tools.hpp>

List of all members.

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.

Detailed Description

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.


Member Function Documentation

void graphlab::cancellable_barrier::cancel ( )
inline
Warning:
: This barrier is safely NOT reusable with this cancel definition

Definition at line 621 of file pthread_tools.hpp.


The documentation for this class was generated from the following file: