From e78d88094dc207906bf85583047bc4efc85c2217 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 23 Apr 2017 17:19:58 +0300 Subject: [PATCH] Removed obsolete timer workaround from Cocoa backend --- src/posix/cocoa/i_timer.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/posix/cocoa/i_timer.cpp b/src/posix/cocoa/i_timer.cpp index 85a0ae8ce77..ac5c49d3e88 100644 --- a/src/posix/cocoa/i_timer.cpp +++ b/src/posix/cocoa/i_timer.cpp @@ -35,7 +35,6 @@ #include #include #include -#include #include "doomdef.h" #include "i_system.h" @@ -124,12 +123,7 @@ void* TimerThreadFunc(void*) if (!s_isTicFrozen) { - // The following GCC/Clang intrinsic can be used instead of OS X specific function: - // __sync_add_and_fetch(&s_tics, 1); - // Although it's not supported on all platform/compiler combination, - // e.g. GCC 4.0.1 with PowerPC target architecture - - OSAtomicIncrement32(&s_tics); + __sync_add_and_fetch(&s_tics, 1); } s_timerStart = I_MSTime();