Searched refs:pMutex (Results 1 – 2 of 2) sorted by relevance
567 MS_BOOL initMutex(pthread_mutex_t* pMutex) in initMutex() argument571 if (0 == pthread_mutex_init(pMutex, NULL)) in initMutex()585 MS_BOOL deleteMutex(pthread_mutex_t* pMutex) in deleteMutex() argument589 if (0 == pthread_mutex_destroy(pMutex)) in deleteMutex()
2864 static void _MsOS_QueueMutexUnlock(pthread_mutex_t* pMutex) in _MsOS_QueueMutexUnlock() argument2866 PTH_RET_CHK(pthread_mutex_unlock(pMutex)); in _MsOS_QueueMutexUnlock()2868 static MS_BOOL _MsOS_QueueMutexLock(pthread_mutex_t* pMutex, MS_U32 u32WaitMs) in _MsOS_QueueMutexLock() argument2874 PTH_RET_CHK(pthread_mutex_lock(pMutex)); in _MsOS_QueueMutexLock()2879 if (!PTH_RET_CHK(pthread_mutex_trylock(pMutex))) in _MsOS_QueueMutexLock()2887 PTH_RET_CHK(pthread_mutex_lock(pMutex)); in _MsOS_QueueMutexLock()2892 bRet= (PTH_RET_CHK(pthread_mutex_timedlock(pMutex, &StopTime)))? FALSE: TRUE; in _MsOS_QueueMutexLock()