Stxxl
1.4.0
|
#include <switch.h>
Public Member Functions | |
onoff_switch (bool flag=false) | |
~onoff_switch () | |
void | on () |
void | off () |
void | wait_for_on () |
void | wait_for_off () |
bool | is_on () |
Private Attributes | |
pthread_mutex_t | mutex |
pthread_cond_t | cond |
bool | _on |
stxxl::onoff_switch::onoff_switch | ( | bool | flag = false | ) | [inline] |
Definition at line 45 of file switch.h.
References check_pthread_call.
stxxl::onoff_switch::~onoff_switch | ( | ) | [inline] |
Definition at line 52 of file switch.h.
References check_pthread_call, and stxxl_function_error.
bool stxxl::onoff_switch::is_on | ( | ) | [inline] |
Definition at line 125 of file switch.h.
References check_pthread_call.
void stxxl::onoff_switch::off | ( | ) | [inline] |
Definition at line 81 of file switch.h.
References check_pthread_call.
void stxxl::onoff_switch::on | ( | ) | [inline] |
Definition at line 67 of file switch.h.
References check_pthread_call.
void stxxl::onoff_switch::wait_for_off | ( | ) | [inline] |
Definition at line 110 of file switch.h.
References check_pthread_call.
void stxxl::onoff_switch::wait_for_on | ( | ) | [inline] |
Definition at line 95 of file switch.h.
References check_pthread_call.
Referenced by stxxl::wait_any().
bool stxxl::onoff_switch::_on [private] |
pthread_cond_t stxxl::onoff_switch::cond [private] |
pthread_mutex_t stxxl::onoff_switch::mutex [private] |