tlds
Transactional Operations for Linked Data Structures
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
barrier Struct Reference

#include <barrier.hpp>

Collaboration diagram for barrier:

Public Member Functions

void wait (string s)
 
 barrier (int n)
 
 ~barrier ()
 

Public Attributes

pthread_cond_t complete
 
int crossing
 

Private Attributes

int participants
 
int parity
 
pthread_mutex_t mutex
 
int count [2]
 
pthread_cond_t sem [2]
 

Constructor & Destructor Documentation

barrier::barrier ( int  n)
inline
barrier::~barrier ( )
inline

Member Function Documentation

void barrier::wait ( string  s)
inline

Here is the caller graph for this function:

Member Data Documentation

pthread_cond_t barrier::complete
int barrier::count
private
int barrier::crossing
pthread_mutex_t barrier::mutex
private
int barrier::parity
private
int barrier::participants
private
pthread_cond_t barrier::sem[2]
private

The documentation for this struct was generated from the following files: