From fe3f64f06abc5152e8ca6a4c824eaa0a25e5e506 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Sat, 4 Nov 2023 19:15:37 +0100 Subject: [PATCH] Fix iOS build --- Source/Engine/Platform/Apple/ApplePlatform.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Engine/Platform/Apple/ApplePlatform.cpp b/Source/Engine/Platform/Apple/ApplePlatform.cpp index c7ab4424d..c939c1af2 100644 --- a/Source/Engine/Platform/Apple/ApplePlatform.cpp +++ b/Source/Engine/Platform/Apple/ApplePlatform.cpp @@ -187,9 +187,11 @@ void ApplePlatform::SetThreadPriority(ThreadPriority priority) void ApplePlatform::SetThreadAffinityMask(uint64 affinityMask) { +#if PLATFORM_MAC thread_affinity_policy policy; policy.affinity_tag = affinityMask; thread_policy_set(pthread_mach_thread_np(pthread_self()), THREAD_AFFINITY_POLICY, (integer_t*)&policy, THREAD_AFFINITY_POLICY_COUNT); +#endif } void ApplePlatform::Sleep(int32 milliseconds)