diff options
author | Stefan Werner <stefan.werner@tangent-animation.com> | 2019-09-30 09:28:56 +0300 |
---|---|---|
committer | Stefan Werner <stefan.werner@tangent-animation.com> | 2019-09-30 09:29:17 +0300 |
commit | 04133ee863b43d1a595ce049685c6a2347ffd3ad (patch) | |
tree | 7d2501744d38684c980a1d47d6a9d332a5ae2d3e /source/blender/blenlib/BLI_threads.h | |
parent | 64c222ff58577b80994a11fa63c137b89a3083fc (diff) |
Revert "macOS: Replaced OSSpinLock with os_unfair_lock."
This reverts commit 9d282d7a8d689a17ae58e94453ae99a41e91b701.
os_unfair_lock requires macOS 10.12 or newer.
Diffstat (limited to 'source/blender/blenlib/BLI_threads.h')
-rw-r--r-- | source/blender/blenlib/BLI_threads.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/BLI_threads.h b/source/blender/blenlib/BLI_threads.h index b7ad6e543f1..32b7f219605 100644 --- a/source/blender/blenlib/BLI_threads.h +++ b/source/blender/blenlib/BLI_threads.h @@ -30,7 +30,7 @@ extern "C" { #include <pthread.h> #ifdef __APPLE__ -# include <os/lock.h> +# include <libkern/OSAtomic.h> #endif /* for tables, button in UI, etc */ @@ -103,7 +103,7 @@ void BLI_mutex_unlock(ThreadMutex *mutex); /* Spin Lock */ #if defined(__APPLE__) -typedef os_unfair_lock SpinLock; +typedef OSSpinLock SpinLock; #elif defined(_MSC_VER) typedef volatile int SpinLock; #else |