diff options
author | Mattes D <github@xoft.cz> | 2013-08-15 10:56:52 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2013-08-15 10:56:52 +0200 |
commit | 1a52e89177a907b5d23d3e72f78d30a333da4bfe (patch) | |
tree | 8f2783d06d423361b02457c77f90d6ec874a5191 /source/OSSupport/Event.h | |
parent | Merge pull request #91 from tigerw/master (diff) | |
parent | Added simple deadlock detection code. (diff) | |
download | cuberite-1a52e89177a907b5d23d3e72f78d30a333da4bfe.tar cuberite-1a52e89177a907b5d23d3e72f78d30a333da4bfe.tar.gz cuberite-1a52e89177a907b5d23d3e72f78d30a333da4bfe.tar.bz2 cuberite-1a52e89177a907b5d23d3e72f78d30a333da4bfe.tar.lz cuberite-1a52e89177a907b5d23d3e72f78d30a333da4bfe.tar.xz cuberite-1a52e89177a907b5d23d3e72f78d30a333da4bfe.tar.zst cuberite-1a52e89177a907b5d23d3e72f78d30a333da4bfe.zip |
Diffstat (limited to 'source/OSSupport/Event.h')
-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 |