Lines Matching refs:pMutexImpl

50 	oslMutexImpl *pMutexImpl;  in osl_createMutex()  local
54 pMutexImpl= (oslMutexImpl*)calloc(sizeof(oslMutexImpl), 1); in osl_createMutex()
55 OSL_ASSERT(pMutexImpl); /* alloc successful? */ in osl_createMutex()
58 rc = DosCreateMutexSem( NULL, &pMutexImpl->m_Mutex, 0, FALSE ); in osl_createMutex()
61 free(pMutexImpl); in osl_createMutex()
69 return (oslMutex)pMutexImpl; in osl_createMutex()
77 oslMutexImpl *pMutexImpl = (oslMutexImpl *)Mutex; in osl_destroyMutex() local
78 if (pMutexImpl) in osl_destroyMutex()
80 DosCloseMutexSem( pMutexImpl->m_Mutex); in osl_destroyMutex()
81 free(pMutexImpl); in osl_destroyMutex()
90 oslMutexImpl *pMutexImpl = (oslMutexImpl *)Mutex; in osl_acquireMutex() local
95 pMutexImpl->m_Requests++; in osl_acquireMutex()
98 rc = DosRequestMutexSem( pMutexImpl->m_Mutex, SEM_INDEFINITE_WAIT ); in osl_acquireMutex()
101 pMutexImpl->m_Requests--; in osl_acquireMutex()
102 if (pMutexImpl->m_Locks++ == 0) in osl_acquireMutex()
103 pMutexImpl->m_Owner = _gettid(); in osl_acquireMutex()
115 oslMutexImpl *pMutexImpl = (oslMutexImpl *)Mutex; in osl_tryToAcquireMutex() local
120 if ( ((pMutexImpl->m_Requests == 0) && (pMutexImpl->m_Locks == 0)) || in osl_tryToAcquireMutex()
121 (pMutexImpl->m_Owner == _gettid()) ) in osl_tryToAcquireMutex()
134 oslMutexImpl *pMutexImpl = (oslMutexImpl *)Mutex; in osl_releaseMutex() local
140 if (--(pMutexImpl->m_Locks) == 0) in osl_releaseMutex()
141 pMutexImpl->m_Owner = 0; in osl_releaseMutex()
145 rc = DosReleaseMutexSem( pMutexImpl->m_Mutex); in osl_releaseMutex()