Lines Matching defs:ts
76 timespec ts = {0, 0};
84 ts.tv_sec = pTsAbsTimeout->tv_sec - tv.tv_sec;
85 ts.tv_nsec = pTsAbsTimeout->tv_nsec - tv.tv_sec;
87 if (ts.tv_nsec < 0)
89 ts.tv_sec--;
90 ts.tv_nsec += 1000000000;
93 if ( ts.tv_sec > 0
94 && ts.tv_nsec > 0)
95 nanosleep(&ts, &ts);
100 || ts.tv_sec > 0);
281 struct timespec ts = {0,0};
286 ts.tv_sec = tv.tv_sec;
287 ts.tv_nsec = tv.tv_usec * 1000;
289 clock_gettime(CLOCK_REALTIME, &ts);
293 ts.tv_nsec += (cMillies % 1000) * 1000000;
294 ts.tv_sec += cMillies / 1000;
295 if (ts.tv_nsec >= 1000000000)
297 ts.tv_nsec -= 1000000000;
298 ts.tv_sec++;
304 int rc = pthread_mutex_timedlock(&pThis->Mutex, &ts);
306 int rc = DarwinPthreadMutexTimedlock(&pThis->Mutex, &ts);