STXXL  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
stxxl::condition_variable Class Reference

Detailed Description

Definition at line 47 of file condition_variable.h.

+ Inheritance diagram for stxxl::condition_variable:
+ Collaboration diagram for stxxl::condition_variable:

Public Member Functions

 condition_variable ()
 initialize condition variable More...
 
 ~condition_variable ()
 destroy condition variable More...
 
void notify_all ()
 notify all waiting threads More...
 
void notify_one ()
 notify one waiting thread More...
 
void wait (scoped_mutex_lock &lock)
 wait for a signal on the condition variable More...
 

Private Attributes

pthread_cond_t cond
 pthread handle to condition More...
 

Additional Inherited Members

- Private Member Functions inherited from stxxl::noncopyable
 noncopyable ()
 

Constructor & Destructor Documentation

stxxl::condition_variable::condition_variable ( )
inline

initialize condition variable

Definition at line 54 of file condition_variable.h.

References STXXL_CHECK_PTHREAD_CALL.

stxxl::condition_variable::~condition_variable ( )
inline

destroy condition variable

Definition at line 59 of file condition_variable.h.

References STXXL_CHECK_PTHREAD_CALL.

Member Function Documentation

void stxxl::condition_variable::notify_all ( )
inline

notify all waiting threads

Definition at line 69 of file condition_variable.h.

References STXXL_CHECK_PTHREAD_CALL.

void stxxl::condition_variable::notify_one ( )
inline

notify one waiting thread

Definition at line 64 of file condition_variable.h.

References STXXL_CHECK_PTHREAD_CALL.

void stxxl::condition_variable::wait ( scoped_mutex_lock lock)
inline

wait for a signal on the condition variable

Definition at line 74 of file condition_variable.h.

References stxxl::scoped_mutex_lock::native_handle(), and STXXL_CHECK_PTHREAD_CALL.

Member Data Documentation

pthread_cond_t stxxl::condition_variable::cond
private

pthread handle to condition

Definition at line 50 of file condition_variable.h.


The documentation for this class was generated from the following file: