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."
39 typedef std::condition_variable condition_variable;
41 #elif STXXL_BOOST_THREADS
43 typedef boost::condition condition_variable;
45 #elif STXXL_POSIX_THREADS
84 #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