Differences From Artifact [31506d7dcf]:
- File
src/OFPlainMutex.h
— part of check-in
[0c3c3b6efa]
at
2024-05-01 15:19:55
on branch trunk
— Document a lot of undocumented functions & macros
Also fixes Doxygen not creating documentation for `static OF_INLINE`
functions. (user: js, size: 7459) [annotate] [blame] [check-ins using] [more...]
To Artifact [b6a04ba6c6]:
- File src/OFPlainMutex.h — part of check-in [f01f8eb45b] at 2024-08-11 13:23:40 on branch trunk — Make headers compatible with -Wunused-parameter (user: js, size: 7477) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
274 275 276 277 278 279 280 281 282 283 284 285 286 287 | * @param spinlock A pointer to the spinlock to destroy * @return 0 on success, or an error number from `<errno.h>` on error */ static OF_INLINE int OFSpinlockFree(OFSpinlock *spinlock) { #if defined(OF_HAVE_ATOMIC_OPS) return 0; #elif defined(OF_HAVE_PTHREAD_SPINLOCKS) return pthread_spin_destroy(spinlock); #else return OFPlainMutexFree(spinlock); #endif } | > > | 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 | * @param spinlock A pointer to the spinlock to destroy * @return 0 on success, or an error number from `<errno.h>` on error */ static OF_INLINE int OFSpinlockFree(OFSpinlock *spinlock) { #if defined(OF_HAVE_ATOMIC_OPS) (void)spinlock; return 0; #elif defined(OF_HAVE_PTHREAD_SPINLOCKS) return pthread_spin_destroy(spinlock); #else return OFPlainMutexFree(spinlock); #endif } |