Lines Matching refs:mutex
29 pthread_mutex_t *mutex = SAMGR_Malloc(sizeof(pthread_mutex_t));
30 if (mutex == NULL) {
33 (void)pthread_mutex_init(mutex, NULL);
34 return (MutexId)mutex;
37 void MUTEX_Lock(MutexId mutex)
39 if (mutex == NULL) {
42 pthread_mutex_lock((pthread_mutex_t *)mutex);
45 void MUTEX_Unlock(MutexId mutex)
47 if (mutex == NULL) {
50 pthread_mutex_unlock((pthread_mutex_t *)mutex);