diff options
author | madmaxoft <github@xoft.cz> | 2013-08-14 22:27:49 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-08-14 22:27:49 +0200 |
commit | 259cf9f027adb41925e075799c7e46ccbcaec881 (patch) | |
tree | 64fe1c65c8eef35fa0856c752a1fb3d76b09abda /source/OSSupport/Event.h | |
parent | ClientHandle no longer queues chat messages. (diff) | |
download | cuberite-259cf9f027adb41925e075799c7e46ccbcaec881.tar cuberite-259cf9f027adb41925e075799c7e46ccbcaec881.tar.gz cuberite-259cf9f027adb41925e075799c7e46ccbcaec881.tar.bz2 cuberite-259cf9f027adb41925e075799c7e46ccbcaec881.tar.lz cuberite-259cf9f027adb41925e075799c7e46ccbcaec881.tar.xz cuberite-259cf9f027adb41925e075799c7e46ccbcaec881.tar.zst cuberite-259cf9f027adb41925e075799c7e46ccbcaec881.zip |
Diffstat (limited to '')
-rw-r--r-- | source/OSSupport/Event.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/OSSupport/Event.h b/source/OSSupport/Event.h index 71f418c0c..803d73b7e 100644 --- a/source/OSSupport/Event.h +++ b/source/OSSupport/Event.h @@ -19,12 +19,22 @@ class cEvent { public: + enum eWaitResult + { + wrSignalled, + wrTimeout, + wrError, + } ; + cEvent(void); ~cEvent(); void Wait(void); void Set (void); + /// Waits for the semaphore with a timeout + eWaitResult Wait(int a_TimeoutMilliSec); + private: #ifdef _WIN32 |