summaryrefslogtreecommitdiffstats
path: root/src/OSSupport/Event.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-10-05 19:04:30 +0200
committerMattes D <github@xoft.cz>2014-10-05 19:04:30 +0200
commitec71ffcc8015a9dccfa1d6f8dd474524412b605f (patch)
tree69b6aa06fe1bfc90822ef402d9ea145a6df14022 /src/OSSupport/Event.h
parentUpdated Core. (diff)
downloadcuberite-ec71ffcc8015a9dccfa1d6f8dd474524412b605f.tar
cuberite-ec71ffcc8015a9dccfa1d6f8dd474524412b605f.tar.gz
cuberite-ec71ffcc8015a9dccfa1d6f8dd474524412b605f.tar.bz2
cuberite-ec71ffcc8015a9dccfa1d6f8dd474524412b605f.tar.lz
cuberite-ec71ffcc8015a9dccfa1d6f8dd474524412b605f.tar.xz
cuberite-ec71ffcc8015a9dccfa1d6f8dd474524412b605f.tar.zst
cuberite-ec71ffcc8015a9dccfa1d6f8dd474524412b605f.zip
Diffstat (limited to 'src/OSSupport/Event.h')
-rw-r--r--src/OSSupport/Event.h4
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: