From 9d282d7a8d689a17ae58e94453ae99a41e91b701 Mon Sep 17 00:00:00 2001 From: Stefan Werner Date: Sat, 14 Sep 2019 20:23:29 +0200 Subject: macOS: Replaced OSSpinLock with os_unfair_lock. OSSplinLock is a deprecated API, os_unfair_lock is its successor. This reduces the number of warnings when building on macOS. --- source/blender/blenlib/BLI_threads.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/blenlib/BLI_threads.h') diff --git a/source/blender/blenlib/BLI_threads.h b/source/blender/blenlib/BLI_threads.h index 32b7f219605..b7ad6e543f1 100644 --- a/source/blender/blenlib/BLI_threads.h +++ b/source/blender/blenlib/BLI_threads.h @@ -30,7 +30,7 @@ extern "C" { #include #ifdef __APPLE__ -# include +# include #endif /* for tables, button in UI, etc */ @@ -103,7 +103,7 @@ void BLI_mutex_unlock(ThreadMutex *mutex); /* Spin Lock */ #if defined(__APPLE__) -typedef OSSpinLock SpinLock; +typedef os_unfair_lock SpinLock; #elif defined(_MSC_VER) typedef volatile int SpinLock; #else -- cgit v1.2.3