Lines Matching refs:mutex
40 pthread_mutex_t* mutex = deMalloc(sizeof(pthread_mutex_t)); in deMutex_create() local
42 if (!mutex) in deMutex_create()
47 deFree(mutex); in deMutex_create()
58 deFree(mutex); in deMutex_create()
69 deFree(mutex); in deMutex_create()
75 ret = pthread_mutex_init(mutex, &attr); in deMutex_create()
79 deFree(mutex); in deMutex_create()
85 return (deMutex)mutex; in deMutex_create()
88 void deMutex_destroy (deMutex mutex) in deMutex_destroy() argument
90 pthread_mutex_t* pMutex = (pthread_mutex_t*)mutex; in deMutex_destroy()
96 void deMutex_lock (deMutex mutex) in deMutex_lock() argument
98 int ret = pthread_mutex_lock((pthread_mutex_t*)mutex); in deMutex_lock()
103 void deMutex_unlock (deMutex mutex) in deMutex_unlock() argument
105 int ret = pthread_mutex_unlock((pthread_mutex_t*)mutex); in deMutex_unlock()
110 deBool deMutex_tryLock (deMutex mutex) in deMutex_tryLock() argument
112 return (pthread_mutex_trylock((pthread_mutex_t*)mutex) == 0); in deMutex_tryLock()