Differences From Artifact [c5163894df]:
- File
src/threading.h
— part of check-in
[c5ef582958]
at
2013-03-04 17:20:15
on branch trunk
— Replace BOOL with bool.
The only places where BOOL is left are those where they are required by
the ABI. (user: js, size: 9871) [annotate] [blame] [check-ins using]
To Artifact [49f79a338f]:
- File src/threading.h — part of check-in [27138ee85b] at 2013-03-14 19:25:48 on branch trunk — Add a few memory barriers. (user: js, size: 9888) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
349 350 351 352 353 354 355 | #endif } static OF_INLINE bool of_spinlock_unlock(of_spinlock_t *spinlock) { #if defined(OF_HAVE_ATOMIC_OPS) | < | | 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 | #endif } static OF_INLINE bool of_spinlock_unlock(of_spinlock_t *spinlock) { #if defined(OF_HAVE_ATOMIC_OPS) return of_atomic_cmpswap_int(spinlock, 1, 0); #elif defined(OF_HAVE_PTHREAD_SPINLOCKS) return !pthread_spin_unlock(spinlock); #else return of_mutex_unlock(spinlock); #endif } |
︙ | ︙ |