Lines Matching refs:mutex
65 void deMutex_destroy (deMutex mutex) in deMutex_destroy() argument
67 DeleteCriticalSection((CRITICAL_SECTION*)mutex); in deMutex_destroy()
68 deFree((CRITICAL_SECTION*)mutex); in deMutex_destroy()
71 void deMutex_lock (deMutex mutex) in deMutex_lock() argument
73 EnterCriticalSection((CRITICAL_SECTION*)mutex); in deMutex_lock()
76 void deMutex_unlock (deMutex mutex) in deMutex_unlock() argument
78 LeaveCriticalSection((CRITICAL_SECTION*)mutex); in deMutex_unlock()
81 deBool deMutex_tryLock (deMutex mutex) in deMutex_tryLock() argument
83 return TryEnterCriticalSection((CRITICAL_SECTION*)mutex) == TRUE; in deMutex_tryLock()
101 void deMutex_destroy (deMutex mutex) in deMutex_destroy() argument
103 HANDLE handle = (HANDLE)mutex; in deMutex_destroy()
107 void deMutex_lock (deMutex mutex) in deMutex_lock() argument
109 HANDLE handle = (HANDLE)mutex; in deMutex_lock()
114 void deMutex_unlock (deMutex mutex) in deMutex_unlock() argument
116 HANDLE handle = (HANDLE)mutex; in deMutex_unlock()
121 deBool deMutex_tryLock (deMutex mutex) in deMutex_tryLock() argument
123 HANDLE handle = (HANDLE)mutex; in deMutex_tryLock()