Stxxl  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
stxxl::onoff_switch Class Reference

#include <switch.h>

Inheritance diagram for stxxl::onoff_switch:
Inheritance graph
[legend]
Collaboration diagram for stxxl::onoff_switch:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

Definition at line 33 of file switch.h.


Constructor & Destructor Documentation

stxxl::onoff_switch::onoff_switch ( bool  flag = false) [inline]

Definition at line 45 of file switch.h.

References check_pthread_call.

Definition at line 52 of file switch.h.

References check_pthread_call, and stxxl_function_error.


Member Function Documentation

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.

Definition at line 110 of file switch.h.

References check_pthread_call.

Definition at line 95 of file switch.h.

References check_pthread_call.

Referenced by stxxl::wait_any().


Member Data Documentation

bool stxxl::onoff_switch::_on [private]

Definition at line 42 of file switch.h.

pthread_cond_t stxxl::onoff_switch::cond [private]

Definition at line 40 of file switch.h.

pthread_mutex_t stxxl::onoff_switch::mutex [private]

Definition at line 39 of file switch.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines