summaryrefslogtreecommitdiffstats
path: root/source/OSSupport/Event.h
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-14 22:27:49 +0200
committermadmaxoft <github@xoft.cz>2013-08-14 22:27:49 +0200
commit259cf9f027adb41925e075799c7e46ccbcaec881 (patch)
tree64fe1c65c8eef35fa0856c752a1fb3d76b09abda /source/OSSupport/Event.h
parentClientHandle no longer queues chat messages. (diff)
downloadcuberite-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 'source/OSSupport/Event.h')
-rw-r--r--source/OSSupport/Event.h10
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