Lines Matching refs:ts
153 static DWORD impl_timespec2msec(const struct timespec *ts)
155 return (DWORD)((ts->tv_sec * 1000U) + (ts->tv_nsec / 1000000L));
213 static int impl_cond_do_wait(cnd_t *cond, mtx_t *mtx, const struct timespec *ts)
226 w = WaitForSingleObject(cond->sem_queue, ts ? impl_timespec2msec(ts) : INFINITE);
445 mtx_timedlock(mtx_t *mtx, const struct timespec *ts)
448 if (!mtx || !ts) return thrd_error;
450 expire += ts->tv_sec;
643 timespec_get(struct timespec *ts, int base)
645 if (!ts) return 0;
647 ts->tv_sec = time(NULL);
648 ts->tv_nsec = 0;