38#define O2sLockGuard __attribute__((cleanup(o2s_mutex_unlock))) pthread_mutex_t*
void o2s_mutex_unlock(pthread_mutex_t *const *mutex)
Unlock the mutex, logging any error.
pthread_mutex_t * o2s_mutex_lock(pthread_mutex_t *mutex)
Lock the mutex, logging any error.