Lines Matching refs:pMutex
58 oslMutexImpl* pMutex = (oslMutexImpl*) malloc(sizeof(oslMutexImpl)); in osl_createMutex() local
62 OSL_ASSERT(pMutex); in osl_createMutex()
64 if ( pMutex == NULL ) in osl_createMutex()
73 nRet = pthread_mutex_init(&(pMutex->mutex), &aMutexAttr); in osl_createMutex()
79 free(pMutex); in osl_createMutex()
80 pMutex = NULL; in osl_createMutex()
85 return (oslMutex) pMutex; in osl_createMutex()
93 oslMutexImpl* pMutex = (oslMutexImpl*) Mutex; in osl_destroyMutex() local
95 OSL_ASSERT(pMutex); in osl_destroyMutex()
97 if ( pMutex != NULL ) in osl_destroyMutex()
101 nRet = pthread_mutex_destroy(&(pMutex->mutex)); in osl_destroyMutex()
108 free(pMutex); in osl_destroyMutex()
119 oslMutexImpl* pMutex = (oslMutexImpl*) Mutex; in osl_acquireMutex() local
121 OSL_ASSERT(pMutex); in osl_acquireMutex()
123 if ( pMutex != NULL ) in osl_acquireMutex()
127 nRet = pthread_mutex_lock(&(pMutex->mutex)); in osl_acquireMutex()
146 oslMutexImpl* pMutex = (oslMutexImpl*) Mutex; in osl_tryToAcquireMutex() local
148 OSL_ASSERT(pMutex); in osl_tryToAcquireMutex()
150 if ( pMutex ) in osl_tryToAcquireMutex()
153 nRet = pthread_mutex_trylock(&(pMutex->mutex)); in osl_tryToAcquireMutex()
169 oslMutexImpl* pMutex = (oslMutexImpl*) Mutex; in osl_releaseMutex() local
171 OSL_ASSERT(pMutex); in osl_releaseMutex()
173 if ( pMutex ) in osl_releaseMutex()
176 nRet = pthread_mutex_unlock(&(pMutex->mutex)); in osl_releaseMutex()