Lines Matching refs:clock
929 clockid_t clock; member
1087 ASSERT_EQ(0, clock_gettime(arg->clock, &ts)); in pthread_rwlock_wakeup_timeout_helper()
1096 ASSERT_EQ(0, clock_gettime(arg->clock, &ts)); in pthread_rwlock_wakeup_timeout_helper()
1104 clockid_t clock, int (*lock_function)(pthread_rwlock_t* __rwlock, const timespec* __timeout)) { in pthread_rwlock_timedrdlock_timeout_helper() argument
1112 wakeup_arg.clock = clock; in pthread_rwlock_timedrdlock_timeout_helper()
1172 clockid_t clock, int (*lock_function)(pthread_rwlock_t* __rwlock, const timespec* __timeout)) { in pthread_rwlock_timedwrlock_timeout_helper() argument
1180 wakeup_arg.clock = clock; in pthread_rwlock_timedwrlock_timeout_helper()
1418 clockid_t clock; in TEST() local
1419 ASSERT_EQ(0, pthread_condattr_getclock(&attr, &clock)); in TEST()
1420 ASSERT_EQ(CLOCK_REALTIME, clock); in TEST()
1432 clockid_t clock; in TEST() local
1433 ASSERT_EQ(0, pthread_condattr_getclock(&attr, &clock)); in TEST()
1434 ASSERT_EQ(CLOCK_REALTIME, clock); in TEST()
1437 ASSERT_EQ(0, pthread_condattr_getclock(&attr, &clock)); in TEST()
1438 ASSERT_EQ(CLOCK_MONOTONIC, clock); in TEST()
1458 clockid_t clock; in TEST() local
1459 ASSERT_EQ(0, pthread_condattr_getclock(&attr, &clock)); in TEST()
1460 ASSERT_EQ(CLOCK_MONOTONIC, clock); in TEST()
1489 void InitCond(clockid_t clock=CLOCK_REALTIME) { in InitCond() argument
1492 ASSERT_EQ(0, pthread_condattr_setclock(&attr, clock)); in InitCond()
1510 clockid_t clock, in RunTimedTest() argument
1514 ASSERT_EQ(0, clock_gettime(clock, &ts)); in RunTimedTest()
1525 void RunTimedTest(clockid_t clock, std::function<int(pthread_cond_t* cond, pthread_mutex_t* mutex, in RunTimedTest() argument
1526 clockid_t clock, const timespec* timeout)> in RunTimedTest()
1528 RunTimedTest(clock, [clock, &wait_function](pthread_cond_t* cond, pthread_mutex_t* mutex, in RunTimedTest()
1530 return wait_function(cond, mutex, clock, timeout); in RunTimedTest()
1627 static void pthread_cond_timedwait_timeout_helper(bool init_monotonic, clockid_t clock, in pthread_cond_timedwait_timeout_helper() argument
1640 clockid_t clock; in pthread_cond_timedwait_timeout_helper() local
1641 ASSERT_EQ(0, pthread_condattr_getclock(&attr, &clock)); in pthread_cond_timedwait_timeout_helper()
1642 ASSERT_EQ(CLOCK_MONOTONIC, clock); in pthread_cond_timedwait_timeout_helper()
1651 ASSERT_EQ(0, clock_gettime(clock, &ts)); in pthread_cond_timedwait_timeout_helper()
2337 static void pthread_mutex_timedlock_helper(clockid_t clock, in pthread_mutex_timedlock_helper() argument
2347 ASSERT_EQ(0, clock_gettime(clock, &ts)); in pthread_mutex_timedlock_helper()
2360 ASSERT_EQ(0, clock_gettime(clock, &ts)); in pthread_mutex_timedlock_helper()
2395 static void pthread_mutex_timedlock_pi_helper(clockid_t clock, in pthread_mutex_timedlock_pi_helper() argument
2401 clock_gettime(clock, &ts); in pthread_mutex_timedlock_pi_helper()
2406 clockid_t clock; in pthread_mutex_timedlock_pi_helper() member
2412 .clock = clock, in pthread_mutex_timedlock_pi_helper()
2420 clock_gettime(args->clock, &ts); in pthread_mutex_timedlock_pi_helper()