59 InitializeCriticalSection(&m_CSWindowsMutex);
61 pthread_mutexattr_init(&m_MutexAttr);
62 pthread_mutex_init(&m_PosixMutex ,&m_MutexAttr);
69 DeleteCriticalSection(&m_CSWindowsMutex);
71 pthread_mutex_destroy(&m_PosixMutex);
72 pthread_mutexattr_destroy(&m_MutexAttr);
85 EnterCriticalSection(&m_CSWindowsMutex);
88 if (pthread_mutex_lock(&m_PosixMutex) == 0)
99 if (TryEnterCriticalSection(&m_CSWindowsMutex) == 0)
108 const int nResult = pthread_mutex_trylock(&m_PosixMutex);
114 else if (nResult == EBUSY)
129 LeaveCriticalSection(&m_CSWindowsMutex);
132 if (pthread_mutex_unlock(&m_PosixMutex) == 0)
Threading::EMutexStatus Lock()
Threading::EMutexStatus TryLock()
Threading::EMutexStatus UnLock()