Fix clang atomic to use for atomic_is_lock_free().

Reviewed by:	ed
Approved by:	dim (mentor)
This commit is contained in:
theraven 2012-01-17 15:20:41 +00:00
parent 7d3312f434
commit 01d570a959

View File

@ -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))