Lines Matching defs:mutex
131 void crInitMutex(CRmutex *mutex)
134 InitializeCriticalSection(mutex);
143 rc = pthread_mutex_init(mutex, &mta);
150 void crFreeMutex(CRmutex *mutex)
153 DeleteCriticalSection(mutex);
155 pthread_mutex_destroy(mutex);
160 void crLockMutex(CRmutex *mutex)
163 EnterCriticalSection(mutex);
165 pthread_mutex_lock(mutex);
170 void crUnlockMutex(CRmutex *mutex)
173 LeaveCriticalSection(mutex);
175 pthread_mutex_unlock(mutex);
209 * See the man page for pthread_cond_wait to learn about the mutex parameter.
211 void crWaitCondition(CRcondition *cond, CRmutex *mutex)
216 (void) mutex;
218 pthread_cond_wait(cond, mutex);
244 pthread_mutex_init( &(b->mutex), NULL );
261 pthread_mutex_lock( &(b->mutex) );
264 pthread_cond_wait( &(b->cond), &(b->mutex) );
270 pthread_mutex_unlock( &(b->mutex) );