Lines Matching defs:ts
481 struct timespec ts = {0,0};
487 ts.tv_sec = tv.tv_sec;
488 ts.tv_nsec = tv.tv_usec * 1000;
490 clock_gettime(CLOCK_REALTIME, &ts);
495 if ( sizeof(ts.tv_sec) < sizeof(uint64_t)
497 || (uint64_t)ts.tv_sec + tsAdd.tv_sec >= UINT32_MAX) )
500 ts.tv_sec += tsAdd.tv_sec;
501 ts.tv_nsec += tsAdd.tv_nsec;
502 if (ts.tv_nsec >= 1000000000)
504 ts.tv_nsec -= 1000000000;
505 ts.tv_sec++;
514 if ( sizeof(ts.tv_sec) < sizeof(uint64_t)
517 ts.tv_nsec = uAbsTimeout % UINT32_C(1000000000);
518 ts.tv_sec = uAbsTimeout / UINT32_C(1000000000);
561 rc = pthread_cond_timedwait(&pThis->Cond, &pThis->Mutex, &ts);