Lines Matching full:mutex
47 _cups_mutex_t *mutex, /* I - Mutex */ in _cupsCondWait() argument
65 pthread_cond_timedwait(cond, mutex, &abstime); in _cupsCondWait()
68 pthread_cond_wait(cond, mutex); in _cupsCondWait()
73 * '_cupsMutexInit()' - Initialize a mutex.
77 _cupsMutexInit(_cups_mutex_t *mutex) /* I - Mutex */ in _cupsMutexInit() argument
79 pthread_mutex_init(mutex, NULL); in _cupsMutexInit()
84 * '_cupsMutexLock()' - Lock a mutex.
88 _cupsMutexLock(_cups_mutex_t *mutex) /* I - Mutex */ in _cupsMutexLock() argument
90 pthread_mutex_lock(mutex); in _cupsMutexLock()
95 * '_cupsMutexUnlock()' - Unlock a mutex.
99 _cupsMutexUnlock(_cups_mutex_t *mutex) /* I - Mutex */ in _cupsMutexUnlock() argument
101 pthread_mutex_unlock(mutex); in _cupsMutexUnlock()
238 _cups_mutex_t *mutex, /* I - Mutex */ in _cupsCondWait() argument
246 * '_cupsMutexInit()' - Initialize a mutex.
250 _cupsMutexInit(_cups_mutex_t *mutex) /* I - Mutex */ in _cupsMutexInit() argument
252 InitializeCriticalSection(&mutex->m_criticalSection); in _cupsMutexInit()
253 mutex->m_init = 1; in _cupsMutexInit()
258 * '_cupsMutexLock()' - Lock a mutex.
262 _cupsMutexLock(_cups_mutex_t *mutex) /* I - Mutex */ in _cupsMutexLock() argument
264 if (!mutex->m_init) in _cupsMutexLock()
268 if (!mutex->m_init) in _cupsMutexLock()
270 InitializeCriticalSection(&mutex->m_criticalSection); in _cupsMutexLock()
271 mutex->m_init = 1; in _cupsMutexLock()
277 EnterCriticalSection(&mutex->m_criticalSection); in _cupsMutexLock()
282 * '_cupsMutexUnlock()' - Unlock a mutex.
286 _cupsMutexUnlock(_cups_mutex_t *mutex) /* I - Mutex */ in _cupsMutexUnlock() argument
288 LeaveCriticalSection(&mutex->m_criticalSection); in _cupsMutexUnlock()
415 _cups_mutex_t *mutex, /* I - Mutex */ in _cupsCondWait() argument
423 * '_cupsMutexInit()' - Initialize a mutex.
427 _cupsMutexInit(_cups_mutex_t *mutex) /* I - Mutex */ in _cupsMutexInit() argument
429 (void)mutex; in _cupsMutexInit()
434 * '_cupsMutexLock()' - Lock a mutex.
438 _cupsMutexLock(_cups_mutex_t *mutex) /* I - Mutex */ in _cupsMutexLock() argument
440 (void)mutex; in _cupsMutexLock()
445 * '_cupsMutexUnlock()' - Unlock a mutex.
449 _cupsMutexUnlock(_cups_mutex_t *mutex) /* I - Mutex */ in _cupsMutexUnlock() argument
451 (void)mutex; in _cupsMutexUnlock()