summaryrefslogtreecommitdiff
path: root/Runtime/Threads/Event.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-08-14 22:50:43 +0800
committerchai <chaifix@163.com>2019-08-14 22:50:43 +0800
commit15740faf9fe9fe4be08965098bbf2947e096aeeb (patch)
treea730ec236656cc8cab5b13f088adfaed6bb218fb /Runtime/Threads/Event.h
+Unity Runtime codeHEADmaster
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