From 15740faf9fe9fe4be08965098bbf2947e096aeeb Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 14 Aug 2019 22:50:43 +0800 Subject: +Unity Runtime code --- Runtime/Threads/Event.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Runtime/Threads/Event.h (limited to 'Runtime/Threads/Event.h') 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 -- cgit v1.1-26-g67d0