Public Member Functions

graphlab::barrier Class Reference
[GraphLab Utility Classes and Functions]

#include <pthread_tools.hpp>

List of all members.

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.

Detailed Description

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.


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