Lines Matching defs:ts
121 struct timespec ts;
123 clock_gettime(CLOCK_MONOTONIC, &ts);
128 ts.tv_sec = t.tv_sec;
129 ts.tv_nsec = t.tv_usec*1000;
135 ts.tv_nsec += static_cast<long>(reltime%1000000000);
136 if (reltime_sec < INT64_MAX && ts.tv_nsec >= 1000000000) {
137 ts.tv_nsec -= 1000000000;
141 int64_t time_sec = ts.tv_sec;
148 ts.tv_sec = (time_sec > LONG_MAX) ? LONG_MAX : static_cast<long>(time_sec);
150 return -pthread_cond_timedwait(&mCond, &mutex.mMutex, &ts);