#ifndef CORE_INCLUDE_H #define CORE_INCLUDE_H // NOTE: sits right on top of base. shared by audio, net, render and the player. #if PLATFORM_LINUX #include #include #include #include #include #elif PLATFORM_APPLE #include #include #include #include // NOTE: the futex of darwin. private but stable since 10.12, libc++ and swift's runtime use it. extern "C" int __ulock_wait(uint32_t operation, void *address, uint64_t value, uint32_t timeout_us); extern "C" int __ulock_wake(uint32_t operation, void *address, uint64_t wake_value); #define DARWIN_UL_COMPARE_AND_WAIT 1 #define DARWIN_ULF_WAKE_ALL 0x00000100 #define DARWIN_ULF_NO_ERRNO 0x01000000 #elif PLATFORM_WINDOWS #include #include // NOTE: WaitOnAddress / WakeByAddressAll live in Synchronization.lib (api-ms-win-core-synch-l1-2-0) #endif #include "core_sync.h" #include "core_job.h" #include "core_profile.h" #include "core_sync.cpp" #include "core_job.cpp" #include "core_profile.cpp" #endif // CORE_INCLUDE_H