18 #ifndef MUTEX_INCLUDEDEF_H 19 #define MUTEX_INCLUDEDEF_H 34 pthread_mutex_init(&m_hMutex, 0);
40 pthread_mutex_init(&m_hMutex, 0);
45 pthread_mutex_destroy(&m_hMutex);
56 ret = pthread_mutex_lock(&m_hMutex);
60 timespec abstime = { time(0) + uiTimeOut, 0 };
61 ret = pthread_mutex_timedlock(&m_hMutex, &abstime);
69 pthread_mutex_unlock(&m_hMutex);
const unsigned int INFINITE
bool lock(unsigned int uiTimeOut=INFINITE)