00001 #line 1172 "./lpsrc/flx_pthread.pak"
00002 #ifndef __FLX_PTHREAD_WAIT_BOOL_H__
00003 #define __FLX_PTHREAD_WAIT_BOOL_H__
00004 #include <flx_pthread_config.hpp>
00005 #include "pthread_mutex.hpp"
00006 #include "pthread_condv.hpp"
00007
00008 namespace flx { namespace pthread {
00009
00010
00011 class PTHREAD_EXTERN waitable_bool {
00012 flx::pthread::flx_mutex_t cv_lock;
00013 flx::pthread::flx_condv_t finished_cond;
00014 bool finished;
00015 public:
00016 waitable_bool();
00017
00018 void wait_until_true();
00019 void signal_true();
00020 };
00021
00022 }}
00023 #endif // __FLX_PTHREAD_WAIT_BOOL_H__
00024