Lines Matching refs:clock

958   clockid_t clock;  member
1116 ASSERT_EQ(0, clock_gettime(arg->clock, &ts)); in pthread_rwlock_wakeup_timeout_helper()
1125 ASSERT_EQ(0, clock_gettime(arg->clock, &ts)); in pthread_rwlock_wakeup_timeout_helper()
1133 clockid_t clock, int (*lock_function)(pthread_rwlock_t* __rwlock, const timespec* __timeout)) { in pthread_rwlock_timedrdlock_timeout_helper() argument
1141 wakeup_arg.clock = clock; in pthread_rwlock_timedrdlock_timeout_helper()
1201 clockid_t clock, int (*lock_function)(pthread_rwlock_t* __rwlock, const timespec* __timeout)) { in pthread_rwlock_timedwrlock_timeout_helper() argument
1209 wakeup_arg.clock = clock; in pthread_rwlock_timedwrlock_timeout_helper()
1497 clockid_t clock; in TEST() local
1498 ASSERT_EQ(0, pthread_condattr_getclock(&attr, &clock)); in TEST()
1499 ASSERT_EQ(CLOCK_REALTIME, clock); in TEST()
1511 clockid_t clock; in TEST() local
1512 ASSERT_EQ(0, pthread_condattr_getclock(&attr, &clock)); in TEST()
1513 ASSERT_EQ(CLOCK_REALTIME, clock); in TEST()
1516 ASSERT_EQ(0, pthread_condattr_getclock(&attr, &clock)); in TEST()
1517 ASSERT_EQ(CLOCK_MONOTONIC, clock); in TEST()
1537 clockid_t clock; in TEST() local
1538 ASSERT_EQ(0, pthread_condattr_getclock(&attr, &clock)); in TEST()
1539 ASSERT_EQ(CLOCK_MONOTONIC, clock); in TEST()
1569 void InitCond(clockid_t clock=CLOCK_REALTIME) { in InitCond() argument
1572 ASSERT_EQ(0, pthread_condattr_setclock(&attr, clock)); in InitCond()
1590 clockid_t clock, in RunTimedTest() argument
1593 ASSERT_EQ(0, clock_gettime(clock, &ts)); in RunTimedTest()
1604 void RunTimedTest(clockid_t clock, std::function<int(pthread_cond_t* cond, pthread_mutex_t* mutex, in RunTimedTest() argument
1605 clockid_t clock, const timespec* timeout)> in RunTimedTest()
1607 RunTimedTest(clock, [clock, &wait_function](pthread_cond_t* cond, pthread_mutex_t* mutex, in RunTimedTest()
1609 return wait_function(cond, mutex, clock, timeout); in RunTimedTest()
1706 static void pthread_cond_timedwait_timeout_helper(bool init_monotonic, clockid_t clock, in pthread_cond_timedwait_timeout_helper() argument
1719 clockid_t clock; in pthread_cond_timedwait_timeout_helper() local
1720 ASSERT_EQ(0, pthread_condattr_getclock(&attr, &clock)); in pthread_cond_timedwait_timeout_helper()
1721 ASSERT_EQ(CLOCK_MONOTONIC, clock); in pthread_cond_timedwait_timeout_helper()
1730 ASSERT_EQ(0, clock_gettime(clock, &ts)); in pthread_cond_timedwait_timeout_helper()
2420 static void pthread_mutex_timedlock_helper(clockid_t clock, in pthread_mutex_timedlock_helper() argument
2430 ASSERT_EQ(0, clock_gettime(clock, &ts)); in pthread_mutex_timedlock_helper()
2441 ASSERT_EQ(0, clock_gettime(clock, &ts)); in pthread_mutex_timedlock_helper()
2450 clock_gettime(clock, &ts); in pthread_mutex_timedlock_helper()
2457 ASSERT_EQ(0, clock_gettime(clock, &ts)); in pthread_mutex_timedlock_helper()
2492 static void pthread_mutex_timedlock_pi_helper(clockid_t clock, in pthread_mutex_timedlock_pi_helper() argument
2498 clock_gettime(clock, &ts); in pthread_mutex_timedlock_pi_helper()
2507 clockid_t clock; in pthread_mutex_timedlock_pi_helper() member
2513 .clock = clock, in pthread_mutex_timedlock_pi_helper()
2521 clock_gettime(args->clock, &ts); in pthread_mutex_timedlock_pi_helper()
2534 clock_gettime(clock, &ts); in pthread_mutex_timedlock_pi_helper()