Blender Git Commit Log

Git Commits -> Revision 0e1ee29

Revision 0e1ee29 by Sergey Sharybin (master)
July 3, 2020, 09:14 (GMT)
BLI: Use TBB spin_mutex as SpinLock implementation

When building without TBB use native to the platform spin lock
implementation. For Windows it is an atomic-based busy-wait,
for Linux it is pthreads' spin lock.

For macOS it is a mutex lock. The reason behind this is to stop
using atomics library which has been declared deprecated in SDK
version 10.12. So this changes fixes a lot of noisy warnings on
the newer SDK.

Differential Revision: https://developer.blender.org/D8180

Commit Details:

Full Hash: 0e1ee29f777dbcd7f74a4d99690f8d29022b8091
Parent Commit: 0f4049d
Lines Changed: +49, -18

2 Modified Paths:

/source/blender/blenlib/BLI_threads.h (+10, -6) (Diff)
/source/blender/blenlib/intern/threads.cc (+39, -12) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021