Fix clang atomic to use for atomic_is_lock_free().
Reviewed by: ed Approved by: dim (mentor)
This commit is contained in:
parent
7d3312f434
commit
01d570a959
@ -118,7 +118,7 @@ enum memory_order {
|
||||
|
||||
#if defined(__CLANG_ATOMICS)
|
||||
#define atomic_is_lock_free(obj) \
|
||||
__atomic_is_lock_free(obj)
|
||||
__atomic_is_lock_free(sizeof(obj))
|
||||
#elif defined(__GNUC_ATOMICS)
|
||||
#define atomic_is_lock_free(obj) \
|
||||
__atomic_is_lock_free(sizeof((obj)->__val))
|
||||
|
Loading…
Reference in New Issue
Block a user