#include <sync.h>
Public Member Functions | |
| CondVarBundle () | |
| ~CondVarBundle () | |
Public Attributes | |
| pthread_mutex_t | mutex |
| pthread_cond_t | cond |
| bool | condition |
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.
| CondVarBundle::CondVarBundle | ( | ) |
Initialize to false the condition and the other variables.
| CondVarBundle::~CondVarBundle | ( | ) |
Cleanup for the variables.
1.8.8