Lines Matching refs:pMutexImpl

52 	oslMutexImpl *pMutexImpl;  in osl_createMutex()  local
90 pMutexImpl= calloc(sizeof(oslMutexImpl), 1); in osl_createMutex()
92 OSL_ASSERT(pMutexImpl); /* alloc successful? */ in osl_createMutex()
94 InitializeCriticalSection(&pMutexImpl->m_Mutex); in osl_createMutex()
96 return (oslMutex)pMutexImpl; in osl_createMutex()
104 oslMutexImpl *pMutexImpl = (oslMutexImpl *)Mutex; in osl_destroyMutex() local
106 if (pMutexImpl) in osl_destroyMutex()
108 DeleteCriticalSection(&pMutexImpl->m_Mutex); in osl_destroyMutex()
109 free(pMutexImpl); in osl_destroyMutex()
118 oslMutexImpl *pMutexImpl = (oslMutexImpl *)Mutex; in osl_acquireMutex() local
125 pMutexImpl->m_Requests++; in osl_acquireMutex()
128 EnterCriticalSection(&pMutexImpl->m_Mutex); in osl_acquireMutex()
131 pMutexImpl->m_Requests--; in osl_acquireMutex()
132 if (pMutexImpl->m_Locks++ == 0) in osl_acquireMutex()
133 pMutexImpl->m_Owner = GetCurrentThreadId(); in osl_acquireMutex()
137 EnterCriticalSection(&pMutexImpl->m_Mutex); in osl_acquireMutex()
148 oslMutexImpl *pMutexImpl = (oslMutexImpl *)Mutex; in osl_tryToAcquireMutex() local
153 return (sal_Bool)(lpfTryEnterCriticalSection(&pMutexImpl->m_Mutex) != FALSE); in osl_tryToAcquireMutex()
158 if ( ((pMutexImpl->m_Requests == 0) && (pMutexImpl->m_Locks == 0)) || in osl_tryToAcquireMutex()
159 (pMutexImpl->m_Owner == GetCurrentThreadId()) ) in osl_tryToAcquireMutex()
173 oslMutexImpl *pMutexImpl = (oslMutexImpl *)Mutex; in osl_releaseMutex() local
181 if (--(pMutexImpl->m_Locks) == 0) in osl_releaseMutex()
182 pMutexImpl->m_Owner = 0; in osl_releaseMutex()
187 LeaveCriticalSection(&pMutexImpl->m_Mutex); in osl_releaseMutex()