diff options
author | Mattes D <github@xoft.cz> | 2014-10-06 09:24:51 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-10-06 09:24:51 +0200 |
commit | 89713e23e4d7a341700d83f078142a4007b12d38 (patch) | |
tree | ba3db4fdf32f730759b6bb4caea0c63b818475fb /src/OSSupport/Event.h | |
parent | Fixed a missed value. (diff) | |
parent | Update CMakeLists.txt (diff) | |
download | cuberite-89713e23e4d7a341700d83f078142a4007b12d38.tar cuberite-89713e23e4d7a341700d83f078142a4007b12d38.tar.gz cuberite-89713e23e4d7a341700d83f078142a4007b12d38.tar.bz2 cuberite-89713e23e4d7a341700d83f078142a4007b12d38.tar.lz cuberite-89713e23e4d7a341700d83f078142a4007b12d38.tar.xz cuberite-89713e23e4d7a341700d83f078142a4007b12d38.tar.zst cuberite-89713e23e4d7a341700d83f078142a4007b12d38.zip |
Diffstat (limited to 'src/OSSupport/Event.h')
-rw-r--r-- | src/OSSupport/Event.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/OSSupport/Event.h b/src/OSSupport/Event.h index 71f418c0c..e2fa65a05 100644 --- a/src/OSSupport/Event.h +++ b/src/OSSupport/Event.h @@ -24,6 +24,10 @@ public: void Wait(void); void Set (void); + + /** Waits for the event until either it is signalled, or the (relative) timeout is passed. + Returns true if the event was signalled, false if the timeout was hit or there was an error. */ + bool Wait(int a_TimeoutMSec); private: |