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

Detailed Description

Definition at line 46 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 () noexcept(false)
 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 53 of file condition_variable.h.

References STXXL_CHECK_PTHREAD_CALL.

stxxl::condition_variable::~condition_variable ( )
inlinenoexcept

destroy condition variable

Definition at line 58 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 68 of file condition_variable.h.

References STXXL_CHECK_PTHREAD_CALL.

void stxxl::condition_variable::notify_one ( )
inline

notify one waiting thread

Definition at line 63 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 73 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 49 of file condition_variable.h.


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