All Classes Namespaces Functions Variables Enumerations Enumerator Pages
Public Member Functions | Public Attributes | List of all members
server::CondVarBundle Struct Reference

#include <sync.h>

Public Member Functions

 CondVarBundle ()
 
 ~CondVarBundle ()
 

Public Attributes

pthread_mutex_t mutex
 
pthread_cond_t cond
 
bool condition
 

Detailed Description

This struct simplifies the usage of conditional variables. It bundles the pthread_cond_t variable, a pthread_mutex_t and a boolean representing the condition to wait/signal.

Constructor & Destructor Documentation

CondVarBundle::CondVarBundle ( )

Initialize to false the condition and the other variables.

CondVarBundle::~CondVarBundle ( )

Cleanup for the variables.


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