Searched refs:tsNow (Results 1 – 5 of 5) sorted by relevance
/third_party/musl/libc-test/src/functionalext/thread/ |
D | pthread_mutex_ext.c | 25 struct timespec tsNow = {0}; in PthreadClocklockOutRealTime() local 31 clock_gettime(CLOCK_REALTIME, &tsNow); in PthreadClocklockOutRealTime() 32 int timeDiff = GetTimeDiff(tsNow, ts); // calculate time different in PthreadClocklockOutRealTime() 93 struct timespec tsNow = {0}; in PthreadClocklockOutMonoTime() local 99 clock_gettime(CLOCK_MONOTONIC, &tsNow); in PthreadClocklockOutMonoTime() 100 int timeDiff = GetTimeDiff(tsNow, ts); // calculate time different in PthreadClocklockOutMonoTime() 161 struct timespec tsNow = {0}; in PthreadClocklockOutRealTime2() local 165 clock_gettime(CLOCK_REALTIME, &tsNow); in PthreadClocklockOutRealTime2() 166 tsNow.tv_sec += 1; in PthreadClocklockOutRealTime2() 167 clock_settime(CLOCK_REALTIME, &tsNow); in PthreadClocklockOutRealTime2() [all …]
|
D | pthread_cond_timedwait.c | 279 struct timespec tsNow = {0}; in ClockWaitTimeOut() local 285 clock_gettime(CLOCK_REALTIME, &tsNow); in ClockWaitTimeOut() 287 int timeDiff = GetTimeDiff(tsNow, ts); in ClockWaitTimeOut() 357 struct timespec tsNow = {0}; in ClockWaitTimeOut2() local 363 clock_gettime(CLOCK_MONOTONIC, &tsNow); in ClockWaitTimeOut2() 365 int timeDiff = GetTimeDiff(tsNow, ts); in ClockWaitTimeOut2() 459 struct timespec tsNow = {0}; in ClockWaitTimeMismatch3() local 463 clock_gettime(CLOCK_REALTIME, &tsNow); in ClockWaitTimeMismatch3() 464 tsNow.tv_sec += 1; in ClockWaitTimeMismatch3() 465 EXPECT_EQ(clock_settime(CLOCK_REALTIME, &tsNow), 0); in ClockWaitTimeMismatch3() [all …]
|
D | pthread_rwlock_rdlock.c | 75 struct timespec tsNow = {0}; in PthreadClockRdlockOutRealTimeR2() local 79 clock_gettime(CLOCK_REALTIME, &tsNow); in PthreadClockRdlockOutRealTimeR2() 80 int timeDiff = GetTimeDiff(tsNow, ts); // calculate time different in PthreadClockRdlockOutRealTimeR2() 160 struct timespec tsNow = {0}; in PthreadClockRdlockOutMonoTimeR2() local 164 clock_gettime(CLOCK_MONOTONIC, &tsNow); in PthreadClockRdlockOutMonoTimeR2() 165 int timeDiff = GetTimeDiff(tsNow, ts); // calculate time different in PthreadClockRdlockOutMonoTimeR2() 244 struct timespec tsNow = {0}; in PthreadTimedRdlockMonoNPOutR2() local 248 clock_gettime(CLOCK_MONOTONIC, &tsNow); in PthreadTimedRdlockMonoNPOutR2() 249 int timeDiff = GetTimeDiff(tsNow, ts); // calculate time different in PthreadTimedRdlockMonoNPOutR2()
|
D | pthread_rwlock_wrlock.c | 38 struct timespec tsNow = {0}; in RwlockClockRealTimeOut2() local 42 clock_gettime(CLOCK_REALTIME, &tsNow); in RwlockClockRealTimeOut2() 43 int timeDiff = GetTimeDiff(tsNow, ts); in RwlockClockRealTimeOut2() 80 struct timespec tsNow = {0}; in RwlockClockMonotonicTimeOut2() local 84 clock_gettime(CLOCK_MONOTONIC, &tsNow); in RwlockClockMonotonicTimeOut2() 85 int timeDiff = GetTimeDiff(tsNow, ts); in RwlockClockMonotonicTimeOut2() 121 struct timespec tsNow = {0}; in RwlockMonotonicTime2() local 125 clock_gettime(CLOCK_MONOTONIC, &tsNow); in RwlockMonotonicTime2() 126 int timeDiff = GetTimeDiff(tsNow, ts); in RwlockMonotonicTime2()
|
/third_party/musl/libc-test/src/functionalext/common/ |
D | pthread_util.h | 68 struct timespec tsNow = {0}; in GetDelayedTimeByClockid() local 69 clock_gettime(clockid, &tsNow); in GetDelayedTimeByClockid() 70 ts->tv_sec = tsNow.tv_sec + (tsNow.tv_nsec + setTimeNs) / nsecPerSec; in GetDelayedTimeByClockid() 71 ts->tv_nsec = (tsNow.tv_nsec + setTimeNs) % nsecPerSec; in GetDelayedTimeByClockid()
|