int pthread_mutex_lock(pthread_mutex_t *mutex) { int err = pthread_mutex_lock_impl(mutex); if (PTHREAD_DEBUG_ENABLED) { if (!err) { pthread_debug_mutex_lock_check(mutex); } } return err; }
static int pthread_mutex_lock_unchecked(pthread_mutex_t *mutex) { return pthread_mutex_lock_impl(mutex); }