13 #ifndef STXXL_COMMON_CONDITION_VARIABLE_HEADER
14 #define STXXL_COMMON_CONDITION_VARIABLE_HEADER
21 #include <condition_variable>
22 #elif STXXL_BOOST_THREADS
23 #include <boost/thread/condition.hpp>
24 #elif STXXL_POSIX_THREADS
31 #error "Thread implementation not detected."
38 typedef std::condition_variable condition_variable;
40 #elif STXXL_BOOST_THREADS
42 typedef boost::condition condition_variable;
44 #elif STXXL_POSIX_THREADS
83 #endif // !STXXL_COMMON_CONDITION_VARIABLE_HEADER
~condition_variable()
destroy condition variable
#define STXXL_CHECK_PTHREAD_CALL(expr)
Checks pthread call, if return != 0, throws stxxl::resource_error with "Error in [function] : [pthrea...
void notify_all()
notify all waiting threads
void wait(scoped_mutex_lock &lock)
wait for a signal on the condition variable
pthread_mutex_t & native_handle()
return platform specific handle
condition_variable()
initialize condition variable
Aquire a lock that's valid until the end of scope.
#define STXXL_BEGIN_NAMESPACE
void notify_one()
notify one waiting thread
pthread_cond_t cond
pthread handle to condition
#define STXXL_END_NAMESPACE