25 using namespace SLNet;
48 #if defined(WINDOWS_PHONE_8) || defined(WINDOWS_STORE_RT)
51 eventList=CreateEvent(0,
false,
false, 0);
93 pthread_mutex_destroy(&
hMutex);
95 pthread_condattr_destroy( &
condAttr );
135 WaitForSingleObjectEx(
eventList,timeoutMs,FALSE);
215 rc = gettimeofday(&tp, NULL);
216 ts.tv_sec = tp.tv_sec;
217 ts.tv_nsec = tp.tv_usec * 1000;
220 while (timeoutMs > 30)
224 ts.tv_nsec += 30*1000000;
225 if (ts.tv_nsec >= 1000000000)
227 ts.tv_nsec -= 1000000000;
236 pthread_mutex_lock(&
hMutex);
238 pthread_mutex_unlock(&
hMutex);
253 ts.tv_nsec += timeoutMs*1000000;
254 if (ts.tv_nsec >= 1000000000)
256 ts.tv_nsec -= 1000000000;
260 pthread_mutex_lock(&
hMutex);
262 pthread_mutex_unlock(&
hMutex);