Lines Matching defs:ts
399 struct timespec ts = {0,0};
403 ts.tv_sec = tv.tv_sec;
404 ts.tv_nsec = tv.tv_usec * 1000;
406 clock_gettime(CLOCK_REALTIME, &ts);
410 ts.tv_nsec += (cMillies % 1000) * 1000000;
411 ts.tv_sec += cMillies / 1000;
412 if (ts.tv_nsec >= 1000000000)
414 ts.tv_nsec -= 1000000000;
415 ts.tv_sec++;
478 rc = pthread_cond_timedwait(&pThis->Cond, &pThis->Mutex, &ts);