14 #ifndef _POSIX_C_SOURCE
15 #define _POSIX_C_SOURCE 200809L
18 #if defined(_POSIX_READER_WRITER_LOCKS) && _POSIX_READER_WRITER_LOCKS > 0
19 #define MUTEX_IS_PTHREAD_RWLOCK
23 #if defined(MUTEX_IS_PTHREAD_RWLOCK)
59 #if defined(MUTEX_IS_PTHREAD_RWLOCK)
61 #define SAFE_PTHREAD(fncall) \
63 if ((fncall) != 0) abort(); \
125 #define MutexLock(x) static_assert(false, "MutexLock declaration missing variable name")
126 #define ReaderMutexLock(x) static_assert(false, "ReaderMutexLock declaration missing variable name")
127 #define WriterMutexLock(x) static_assert(false, "WriterMutexLock declaration missing variable name")
131 #endif // UTIL_MUTEX_H_