Lines Matching defs:ts
122 struct timespec ts;
123 ts.tv_sec = abs_timeout / (1000*1000*1000);
124 ts.tv_nsec = abs_timeout % (1000*1000*1000);
133 int r = futex_wait(&fence->val, 2, timeout ? &ts : NULL);
190 struct timespec ts;
192 timespec_get(&ts, TIME_UTC);
194 ts.tv_sec += abs_timeout / (1000*1000*1000);
195 ts.tv_nsec += abs_timeout % (1000*1000*1000);
196 if (ts.tv_nsec >= (1000*1000*1000)) {
197 ts.tv_sec++;
198 ts.tv_nsec -= (1000*1000*1000);
203 if (cnd_timedwait(&fence->cond, &fence->mutex, &ts) != thrd_success)