Home
last modified time | relevance | path

Searched refs:tsNow (Results 1 - 5 of 5) sorted by relevance

/third_party/musl/libc-test/src/functionalext/thread/
H A Dpthread_mutex_ext.c25 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()
215 struct timespec tsNow = {0}; pthread_mutex_clocklock_0060() local
240 struct timespec tsNow = {0}; PthreadTimedlockMonotonicNPOut() local
323 struct timespec tsNow = {0}; PthreadLockTimeoutNPOut() local
[all...]
H A Dpthread_rwlock_rdlock.c75 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()
H A Dpthread_cond_timedwait.c280 struct timespec tsNow = {0}; in ClockWaitTimeOut() local
286 clock_gettime(CLOCK_REALTIME, &tsNow); in ClockWaitTimeOut()
288 int timeDiff = GetTimeDiff(tsNow, ts); in ClockWaitTimeOut()
358 struct timespec tsNow = {0}; in ClockWaitTimeOut2() local
364 clock_gettime(CLOCK_MONOTONIC, &tsNow); in ClockWaitTimeOut2()
366 int timeDiff = GetTimeDiff(tsNow, ts); in ClockWaitTimeOut2()
460 struct timespec tsNow = {0}; in ClockWaitTimeMismatch3() local
464 clock_gettime(CLOCK_REALTIME, &tsNow); in ClockWaitTimeMismatch3()
465 tsNow.tv_sec += 1; in ClockWaitTimeMismatch3()
466 EXPECT_EQ(clock_settime(CLOCK_REALTIME, &tsNow), in ClockWaitTimeMismatch3()
519 struct timespec tsNow = {0}; clockwait_timedwait_0070() local
583 struct timespec tsNow = {0}; PthreadCondMonotonicTimeOut() local
689 struct timespec tsNow = {0}; PthreadCondUnsignedTimeOut() local
[all...]
H A Dpthread_rwlock_wrlock.c39 struct timespec tsNow = {0}; in RwlockClockRealTimeOut2() local
49 clock_gettime(CLOCK_REALTIME, &tsNow); in RwlockClockRealTimeOut2()
50 int timeDiff = GetTimeDiff(tsNow, ts); in RwlockClockRealTimeOut2()
87 struct timespec tsNow = {0}; in RwlockClockMonotonicTimeOut2() local
99 clock_gettime(CLOCK_MONOTONIC, &tsNow); in RwlockClockMonotonicTimeOut2()
100 int timeDiff = GetTimeDiff(tsNow, ts); in RwlockClockMonotonicTimeOut2()
136 struct timespec tsNow = {0}; in RwlockMonotonicTime2() local
148 clock_gettime(CLOCK_MONOTONIC, &tsNow); in RwlockMonotonicTime2()
149 int timeDiff = GetTimeDiff(tsNow, ts); in RwlockMonotonicTime2()
/third_party/musl/libc-test/src/functionalext/common/
H A Dpthread_util.h68 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()

Completed in 4 milliseconds