Blender Git Loki

Git Commits -> Revision 1bb2077

Revision 1bb2077 by Sergey Sharybin (master)
August 26, 2021, 12:36 (GMT)
Add locking fallback atomics implementation

Is used for platforms for which we do not have native implementation,
such as MIPS, for example.

It is possible to test locking implementation on local computer by
defining `ATOMIC_FORCE_USE_FALLBACK` in the atomic_ops_unix.h file.

Run full regression suit with the locking implementation on amd64
Linux platform and all tests passed.

Having non-optimal but working implementation for odd-ball platforms
seems to be a better choice than failing the build entirely.

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

Commit Details:

Full Hash: 1bb2077250aed65e9445468161e01aa219a89624
Parent Commit: 2419ffa
Lines Changed: +205, -20

2 Modified Paths:

/intern/atomic/intern/atomic_ops_unix.h (+203, -20) (Diff)
/intern/atomic/intern/atomic_ops_utils.h (+2, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021