summaryrefslogtreecommitdiffstats
path: root/source/OSSupport/Event.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-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