/third_party/mingw-w64/mingw-w64-libraries/winpthreads/tests_pthread/ |
D | condvar3_3.c | 89 struct timespec abstime = { 0, 0 }; in main() local 99 abstime.tv_sec = currSysTime.time; in main() 100 abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm; in main() 101 abstime.tv_sec += 1; in main() 107 assert((rc = pthread_cond_timedwait(&cnd, &mtx, &abstime)) == ETIMEDOUT); in main() 123 abstime.tv_sec = currSysTime.time; in main() 124 abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm; in main() 125 abstime.tv_sec += 1; in main() 127 assert((rc = pthread_cond_timedwait(&cnd, &mtx, &abstime)) == ETIMEDOUT); in main()
|
D | condvar5.c | 38 struct timespec abstime = { 0, 0 }; in main() local 58 abstime.tv_sec = currSysTime.time; in main() 59 abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm; in main() 61 abstime.tv_sec += 5; in main() 63 assert(pthread_cond_timedwait(&cvthing.notbusy, &cvthing.lock, &abstime) == ETIMEDOUT); in main() 71 abstime.tv_sec = currSysTime.time; in main() 72 abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm; in main() 74 abstime.tv_sec += 5; in main() 77 assert(pthread_cond_timedwait(&cvthing.notbusy, &cvthing.lock, &abstime) == 0); in main()
|
D | condvar4.c | 38 struct timespec abstime = { 0, 0 }; in main() local 58 abstime.tv_sec = currSysTime.time; in main() 59 abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm; in main() 61 abstime.tv_sec += 5; in main() 63 assert(pthread_cond_timedwait(&cvthing.notbusy, &cvthing.lock, &abstime) == ETIMEDOUT); in main() 71 abstime.tv_sec = currSysTime.time; in main() 72 abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm; in main() 74 abstime.tv_sec += 5; in main() 77 assert(pthread_cond_timedwait(&cvthing.notbusy, &cvthing.lock, &abstime) == 0); in main()
|
D | rwlock6_t.c | 64 struct timespec abstime = { 0, 0 }; in rdfunc() local 70 abstime.tv_sec = currSysTime.time; in rdfunc() 71 abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm; in rdfunc() 76 abstime.tv_sec += 1; in rdfunc() 77 assert(pthread_rwlock_timedrdlock(&rwlock1, &abstime) == ETIMEDOUT); in rdfunc() 82 abstime.tv_sec += 3; in rdfunc() 83 assert(pthread_rwlock_timedrdlock(&rwlock1, &abstime) == 0); in rdfunc()
|
D | rwlock2_t.c | 52 struct timespec abstime = { 0, 0 }; in main() local 58 abstime.tv_sec = currSysTime.time; in main() 59 abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm; in main() 61 abstime.tv_sec += 1; in main() 65 assert(pthread_rwlock_timedrdlock(&rwlock, &abstime) == 0); in main()
|
D | rwlock4_t.c | 65 struct timespec abstime = { 0, 0 }; in main() local 71 abstime.tv_sec = currSysTime.time; in main() 72 abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm; in main() 74 abstime.tv_sec += 1; in main() 76 assert(pthread_rwlock_timedrdlock(&rwlock1, &abstime) == 0); in main()
|
D | rwlock3_t.c | 65 struct timespec abstime = { 0, 0 }; in main() local 71 abstime.tv_sec = currSysTime.time; in main() 72 abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm; in main() 74 abstime.tv_sec += 1; in main() 76 assert(pthread_rwlock_timedwrlock(&rwlock1, &abstime) == 0); in main()
|
D | rwlock5_t.c | 67 struct timespec abstime = { 0, 0 }; in main() local 73 abstime.tv_sec = currSysTime.time; in main() 74 abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm; in main() 76 abstime.tv_sec += 1; in main() 78 assert(pthread_rwlock_timedrdlock(&rwlock1, &abstime) == 0); in main()
|
D | mutex8.c | 46 struct timespec abstime = { 0, 0 }; in locker() local 52 abstime.tv_sec = currSysTime.time; in locker() 53 abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm; in locker() 55 abstime.tv_sec += 1; in locker() 57 assert(pthread_mutex_timedlock(&mutex, &abstime) == ETIMEDOUT); in locker()
|
D | rwlock6_t2.c | 50 struct timespec abstime = { 0, 0 }; variable 56 result = pthread_rwlock_timedwrlock(&rwlock1, &abstime); in wrfunc() 78 assert(pthread_rwlock_timedrdlock(&rwlock1, &abstime) == ETIMEDOUT); in rdfunc() 97 abstime.tv_sec = currSysTime.time; in main() 98 abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm; in main() 100 abstime.tv_sec += 1; in main()
|
D | mutex8e.c | 54 struct timespec abstime = { 0, 0 }; in locker() local 60 abstime.tv_sec = currSysTime.time; in locker() 61 abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm; in locker() 63 abstime.tv_sec += 1; in locker() 65 assert(pthread_mutex_timedlock(&mutex, &abstime) == ETIMEDOUT); in locker()
|
D | condvar2.c | 88 struct timespec abstime = { 0, 0 }; in main() local 101 abstime.tv_sec = currSysTime.time; in main() 102 abstime.tv_nsec = (long) (1000000ULL * (unsigned long long) currSysTime.millitm); in main() 104 abstime.tv_sec += 1; in main() 106 assert(pthread_cond_timedwait(&cv, &mutex, &abstime) == ETIMEDOUT); in main()
|
D | mutex8r.c | 54 struct timespec abstime = { 0, 0 }; in locker() local 60 abstime.tv_sec = currSysTime.time; in locker() 61 abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm; in locker() 63 abstime.tv_sec += 1; in locker() 65 assert(pthread_mutex_timedlock(&mutex, &abstime) == ETIMEDOUT); in locker()
|
D | mutex8n.c | 54 struct timespec abstime = { 0, 0 }; in locker() local 60 abstime.tv_sec = currSysTime.time; in locker() 61 abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm; in locker() 63 abstime.tv_sec += 1; in locker() 65 assert(pthread_mutex_timedlock(&mutex, &abstime) == ETIMEDOUT); in locker()
|
D | condvar3.c | 35 struct timespec abstime = { 0, 0 }; in main() local 51 abstime.tv_sec = currSysTime.time; in main() 52 abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm; in main() 56 abstime.tv_sec += 5; in main() 59 assert(pthread_cond_timedwait(&cv, &mutex, &abstime) == 0); in main()
|
D | condvar2_1.c | 8 static struct timespec abstime = { 0, 0 }; variable 19 assert(pthread_cond_timedwait(&cv, &mutex, &abstime) == ETIMEDOUT); in mythread() 44 abstime.tv_sec = currSysTime.time; in main() 45 abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm; in main() 47 abstime.tv_sec += 5; in main()
|
D | condvar3_1.c | 87 static struct timespec abstime = { 0, 0 }; variable 108 result = pthread_cond_timedwait(&cv, &mutex, &abstime); in mythread() 139 abstime.tv_sec = currSysTime.time; in main() 140 abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm; in main() 142 abstime.tv_sec += 10; in main()
|
D | condvar6.c | 36 static struct timespec abstime = { 0, 0 }; variable 56 assert(pthread_cond_timedwait(&cvthing.notbusy, &cvthing.lock, &abstime) == 0); in mythread() 90 abstime.tv_sec = currSysTime.time; in main() 91 abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm; in main() 93 abstime.tv_sec += 5; in main()
|
D | condvar3_2.c | 85 static struct timespec abstime = { 0, 0 }; variable 101 abstime2.tv_sec = abstime.tv_sec; in mythread() 139 abstime.tv_sec = abstime2.tv_sec = currSysTime.time + 5; in main() 140 abstime.tv_nsec = abstime2.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm; in main()
|
D | condvar7.c | 36 static struct timespec abstime = { 0, 0 }; variable 68 int r = pthread_cond_timedwait(&cvthing.notbusy, &cvthing.lock, &abstime); in mythread() 109 abstime.tv_sec = currSysTime.time; in main() 110 abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm; in main() 112 abstime.tv_sec += 10; in main()
|
D | condvar8.c | 36 static struct timespec abstime = { 0, 0 }; variable 61 assert(pthread_cond_timedwait(&cvthing.notbusy, &cvthing.lock, &abstime) == 0); in mythread() 97 abstime.tv_sec = currSysTime.time; in main() 98 abstime.tv_nsec = NANOSEC_PER_MILLISEC * currSysTime.millitm; in main() 100 abstime.tv_sec += 10; in main()
|
/third_party/flutter/skia/third_party/externals/sdl/src/thread/pthread/ |
D | SDL_syscond.c | 105 struct timespec abstime; in SDL_CondWaitTimeout() local 112 clock_gettime(CLOCK_REALTIME, &abstime); in SDL_CondWaitTimeout() 114 abstime.tv_nsec += (ms % 1000) * 1000000; in SDL_CondWaitTimeout() 115 abstime.tv_sec += ms / 1000; in SDL_CondWaitTimeout() 119 abstime.tv_sec = delta.tv_sec + (ms / 1000); in SDL_CondWaitTimeout() 120 abstime.tv_nsec = (delta.tv_usec + (ms % 1000) * 1000) * 1000; in SDL_CondWaitTimeout() 122 if (abstime.tv_nsec > 1000000000) { in SDL_CondWaitTimeout() 123 abstime.tv_sec += 1; in SDL_CondWaitTimeout() 124 abstime.tv_nsec -= 1000000000; in SDL_CondWaitTimeout() 128 retval = pthread_cond_timedwait(&cond->cond, &mutex->id, &abstime); in SDL_CondWaitTimeout()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/internal/ |
D | kernel_timeout.h | 144 struct timespec abstime; in MakeAbsTimespec() local 147 abstime.tv_sec = static_cast<time_t>(seconds); in MakeAbsTimespec() 148 abstime.tv_nsec = static_cast<decltype(abstime.tv_nsec)>(n % kNanosPerSecond); in MakeAbsTimespec() 149 return abstime; in MakeAbsTimespec()
|
/third_party/abseil-cpp/absl/synchronization/internal/ |
D | kernel_timeout.h | 143 struct timespec abstime; in MakeAbsTimespec() local 146 abstime.tv_sec = static_cast<time_t>(seconds); in MakeAbsTimespec() 147 abstime.tv_nsec = static_cast<decltype(abstime.tv_nsec)>(n % kNanosPerSecond); in MakeAbsTimespec() 148 return abstime; in MakeAbsTimespec()
|
/third_party/FreeBSD/sys/kern/ |
D | kern_condvar.c | 42 struct timespec abstime; in cv_timedwait() local 44 abstime.tv_sec = tw_ms / MSEC_PER_SEC; in cv_timedwait() 45 abstime.tv_nsec = (tw_ms%MSEC_PER_SEC) * NSEC_PER_MSEC; in cv_timedwait() 46 return (pthread_cond_timedwait(cv, mtx, &abstime)); in cv_timedwait()
|