summaryrefslogtreecommitdiff
path: root/Runtime/Threads/Event.h
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/Threads/Event.h')
-rw-r--r--Runtime/Threads/Event.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/Runtime/Threads/Event.h b/Runtime/Threads/Event.h
new file mode 100644
index 0000000..2075bcf
--- /dev/null
+++ b/Runtime/Threads/Event.h
@@ -0,0 +1,20 @@
+#ifndef __EVENT_H
+#define __EVENT_H
+
+// Event synchronization object.
+
+#if SUPPORT_THREADS
+
+#if UNITY_WIN || UNITY_XENON
+# include "Winapi/PlatformEvent.h"
+#elif HAS_EVENT_OBJECT
+# include "PlatformEvent.h"
+#else
+# include "Semaphore.h"
+ typedef Semaphore Event;
+# pragma message("Event implementation missing. Using a Semaphore.")
+#endif
+
+#endif // SUPPORT_THREADS
+
+#endif // __EVENT_H