Skip to content

(v9_11) Properly use ATOMIC_*_LOCK_FREE preprocessor constants

Ondřej Surý requested to merge 451-fix-atomic-int-lock-free-usage-v9_11 into v9_11

The ATOMIC_*_LOCK_FREE can evalutate either 0, 1, or 2 which indicate the lock-free property of the corresponding atomic types (both signed and unsigned).

Value	Explanation
-----	--------------------------------------
  0	The atomic type is never lock-free
  1	The atomic type is sometimes lock-free
  2	The atomic type is always lock-free
-----	--------------------------------------

(cherry picked from commit a5e7901e)

Closes #451 (closed)

Merge request reports