Lines Matching refs:mutex
313 if (pthread_mutex_init (&lock->mutex, NULL) != 0)
325 if (pthread_mutex_lock (&lock->mutex) != 0)
343 if (pthread_mutex_unlock (&lock->mutex) != 0)
353 if (pthread_mutex_destroy (&lock->mutex) != 0)
434 if (mutex_init (&lock->mutex, USYNC_THREAD, NULL) != 0)
446 if (mutex_lock (&lock->mutex) != 0)
464 if (mutex_unlock (&lock->mutex) != 0)
474 if (mutex_destroy (&lock->mutex) != 0)
485 /* Use the mutex to guarantee that if another thread is already calling
487 if (mutex_lock (&once_control->mutex) != 0)
494 if (mutex_unlock (&once_control->mutex) != 0)