Lines Matching refs:mutex
314 if (pthread_mutex_init (&lock->mutex, NULL) != 0)
326 if (pthread_mutex_lock (&lock->mutex) != 0)
344 if (pthread_mutex_unlock (&lock->mutex) != 0)
354 if (pthread_mutex_destroy (&lock->mutex) != 0)
435 if (mutex_init (&lock->mutex, USYNC_THREAD, NULL) != 0)
447 if (mutex_lock (&lock->mutex) != 0)
465 if (mutex_unlock (&lock->mutex) != 0)
475 if (mutex_destroy (&lock->mutex) != 0)
486 /* Use the mutex to guarantee that if another thread is already calling
488 if (mutex_lock (&once_control->mutex) != 0)
495 if (mutex_unlock (&once_control->mutex) != 0)