blob: 2075bcf2a2e82ca2e61d8a8ed9b2a044eea55805 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
|