Lines Matching refs:ts
204 struct timespec ts; in cthr_test_sleep() local
208 ts.tv_sec = 1; in cthr_test_sleep()
209 ts.tv_nsec = -1; in cthr_test_sleep()
211 VERIFY3S(thrd_sleep(&ts, NULL), <, -1); in cthr_test_sleep()
213 ts.tv_sec = 0; in cthr_test_sleep()
214 ts.tv_nsec = stime; in cthr_test_sleep()
216 VERIFY3S(thrd_sleep(&ts, NULL), ==, 0); in cthr_test_sleep()
305 struct timespec ts; in cthr_test_cndtime() local
307 ts.tv_sec = 0; in cthr_test_cndtime()
308 ts.tv_nsec = 1 * NANOSEC / MILLISEC; in cthr_test_cndtime()
313 VERIFY3S(cnd_timedwait(&cnd, &mtx, &ts), ==, thrd_timedout); in cthr_test_cndtime()
324 struct timespec ts; in cthr_test_mtx_selftime() local
326 ts.tv_sec = 0; in cthr_test_mtx_selftime()
327 ts.tv_nsec = 1 * NANOSEC / MILLISEC; in cthr_test_mtx_selftime()
330 VERIFY3S(mtx_timedlock(&mtx, &ts), ==, thrd_timedout); in cthr_test_mtx_selftime()
339 struct timespec ts; in cthr_test_mtx_busy_thr() local
341 ts.tv_sec = 0; in cthr_test_mtx_busy_thr()
342 ts.tv_nsec = 1 * NANOSEC / MILLISEC; in cthr_test_mtx_busy_thr()
345 VERIFY3S(mtx_timedlock(mtx, &ts), ==, thrd_timedout); in cthr_test_mtx_busy_thr()