00001 #ifndef ROOT_TWaitCondition
00002 #define ROOT_TWaitCondition
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #include <limits.h>
00017 #include "TQtRConfig.h"
00018 #ifdef R__QTGUITHREAD
00019 #include "TWin32Semaphore.h"
00020
00021 class TWaitCondition : public TWin32Semaphore
00022 {
00023 public:
00024 TWaitCondition() : TWin32Semaphore() {}
00025 ~TWaitCondition() {}
00026 bool wait (unsigned long time= ULONG_MAX) { Wait(); return TRUE;}
00027 void wakeOne () { Release(); }
00028 };
00029 #else
00030
00031 class TWaitCondition
00032 {
00033 public:
00034 TWaitCondition() {}
00035 ~TWaitCondition() {}
00036 bool wait (unsigned long time=ULONG_MAX ) { if (time) {} return TRUE;}
00037 void wakeOne () { }
00038 };
00039
00040 #endif
00041 #endif