| /freebsd/lib/libthr/thread/ |
| H A D | thr_cond.c | 50 const struct timespec * abstime); 53 const struct timespec *abstime, int cancel); 205 const struct timespec *abstime, int cancel) in cond_wait_kernel() argument 222 error = _thr_ucond_wait(&cvp->kcond, &mp->m_lock, abstime, in cond_wait_kernel() 277 const struct timespec *abstime, int cancel) in cond_wait_user() argument 318 error = _thr_sleep(curthread, cvp->kcond.c_clockid, abstime); in cond_wait_user() 353 const struct timespec *abstime, int cancel) in cond_wait_common() argument 376 return (cond_wait_kernel(cvp, mp, abstime, cancel)); in cond_wait_common() 378 return (cond_wait_user(cvp, mp, abstime, cancel)); in cond_wait_common() 399 const struct timespec * __restrict abstime) in _thr_cond_timedwait() argument [all …]
|
| H A D | thr_rwlock.c | 169 rwlock_rdlock_common(pthread_rwlock_t *rwlock, const struct timespec *abstime) in rwlock_rdlock_common() argument 208 if (__predict_false(abstime && in rwlock_rdlock_common() 209 (abstime->tv_nsec >= 1000000000 || abstime->tv_nsec < 0))) in rwlock_rdlock_common() 214 ret = __thr_rwlock_rdlock(&prwlock->lock, flags, abstime); in rwlock_rdlock_common() 238 const struct timespec * __restrict abstime) in _pthread_rwlock_timedrdlock() argument 241 return (rwlock_rdlock_common(rwlock, abstime)); in _pthread_rwlock_timedrdlock() 302 rwlock_wrlock_common(pthread_rwlock_t *rwlock, const struct timespec *abstime) in rwlock_wrlock_common() argument 322 if (__predict_false(abstime && in rwlock_wrlock_common() 323 (abstime->tv_nsec >= 1000000000 || abstime->tv_nsec < 0))) in rwlock_wrlock_common() 328 ret = __thr_rwlock_wrlock(&prwlock->lock, abstime); in rwlock_wrlock_common() [all …]
|
| H A D | thr_join.c | 39 const struct timespec *abstime); 74 const struct timespec *abstime) in _pthread_timedjoin_np() argument 76 if (abstime == NULL || abstime->tv_sec < 0 || abstime->tv_nsec < 0 || in _pthread_timedjoin_np() 77 abstime->tv_nsec >= 1000000000) in _pthread_timedjoin_np() 80 return (join_common(pthread, thread_return, abstime, false, false)); in _pthread_timedjoin_np() 116 const struct timespec *abstime, bool peek, bool try) in join_common() argument 174 if (abstime != NULL) { in join_common() 176 TIMESPEC_SUB(&ts2, abstime, &ts); in join_common()
|
| H A D | thr_mutex.c | 66 const struct timespec * __restrict abstime); 76 const struct timespec *abstime); 649 const struct timespec *abstime) in mutex_lock_sleep() argument 656 return (mutex_self_lock(m, abstime)); in mutex_lock_sleep() 699 if (abstime == NULL) in mutex_lock_sleep() 701 else if (__predict_false(abstime->tv_nsec < 0 || in mutex_lock_sleep() 702 abstime->tv_nsec >= 1000000000)) in mutex_lock_sleep() 705 ret = __thr_umutex_timedlock(&m->m_lock, id, abstime); in mutex_lock_sleep() 716 mutex_lock_common(struct pthread_mutex *m, const struct timespec *abstime, in mutex_lock_common() argument 734 ret = mutex_lock_sleep(curthread, m, abstime); in mutex_lock_common() [all …]
|
| H A D | thr_sem.c | 62 const struct timespec * __restrict abstime); 71 const struct timespec * __restrict abstime); 106 const struct timespec * __restrict abstime) in _sem_timedwait_compat() argument 108 return _libc_sem_timedwait_compat(sem, abstime); in _sem_timedwait_compat()
|
| H A D | thr_umtx.c | 110 const struct timespec *abstime) in __thr_umutex_timedlock() argument 117 if (abstime == NULL) { in __thr_umutex_timedlock() 123 timeout._timeout = *abstime; in __thr_umutex_timedlock() 207 const struct timespec *abstime, int shared) in _thr_umtx_timedwait_uint() argument 212 if (abstime == NULL) { in _thr_umtx_timedwait_uint() 218 timeout._timeout = *abstime; in _thr_umtx_timedwait_uint()
|
| H A D | thr_kern.c | 190 const struct timespec *abstime) in _thr_sleep() argument 197 clockid, abstime, 0); in _thr_sleep()
|
| /freebsd/sys/kern/ |
| H A D | uipc_sem.c | 118 struct timespec *abstime); 767 const struct timespec *abstime; member 773 struct timespec abstime; in sys_ksem_timedwait() local 780 if (uap->abstime == NULL) in sys_ksem_timedwait() 783 error = copyin(uap->abstime, &abstime, sizeof(abstime)); in sys_ksem_timedwait() 786 if (abstime.tv_nsec >= 1000000000 || abstime.tv_nsec < 0) in sys_ksem_timedwait() 788 ts = &abstime; in sys_ksem_timedwait() 807 struct timespec *abstime) in kern_sem_wait() argument 839 else if (abstime == NULL) in kern_sem_wait() 843 ts1 = *abstime; in kern_sem_wait() [all …]
|
| /freebsd/lib/libc/gen/ |
| H A D | sem.c | 315 _umtx_wait_uint(volatile unsigned *mtx, unsigned id, const struct timespec *abstime) in _umtx_wait_uint() argument 320 if (abstime == NULL) { in _umtx_wait_uint() 326 timeout._timeout = *abstime; in _umtx_wait_uint() 365 const struct timespec * __restrict abstime) in _libc_sem_timedwait_compat() argument 390 if (abstime) { in _libc_sem_timedwait_compat() 391 if (abstime->tv_nsec >= 1000000000 || abstime->tv_nsec < 0) { in _libc_sem_timedwait_compat() 399 retval = _umtx_wait_uint(&(*sem)->count, 0, abstime); in _libc_sem_timedwait_compat()
|
| H A D | sem_new.c | 432 const struct timespec * __restrict abstime) in _sem_timedwait() argument 435 return (_sem_clockwait_np(sem, CLOCK_REALTIME, TIMER_ABSTIME, abstime, in _sem_timedwait()
|
| /freebsd/contrib/sendmail/libmilter/ |
| H A D | monitor.c | 117 struct timespec abstime; local 120 abstime.tv_sec = end; 121 abstime.tv_nsec = 0; 123 &abstime);
|
| /freebsd/contrib/ntp/sntp/libevent/ |
| H A D | evthread_pthread.c | 144 struct timeval now, abstime; in evthread_posix_cond_wait() local 147 evutil_timeradd(&now, tv, &abstime); in evthread_posix_cond_wait() 148 ts.tv_sec = abstime.tv_sec; in evthread_posix_cond_wait() 149 ts.tv_nsec = abstime.tv_usec*1000; in evthread_posix_cond_wait()
|
| H A D | evutil_time.c | 407 ev_uint64_t abstime, usec; in evutil_gettime_monotonic_() local 415 abstime = mach_absolute_time(); in evutil_gettime_monotonic_() 416 usec = (abstime * base->mach_timebase_units.numer) in evutil_gettime_monotonic_()
|
| /freebsd/contrib/libevent/ |
| H A D | evthread_pthread.c | 144 struct timeval now, abstime; in evthread_posix_cond_wait() local 147 evutil_timeradd(&now, tv, &abstime); in evthread_posix_cond_wait() 148 ts.tv_sec = abstime.tv_sec; in evthread_posix_cond_wait() 149 ts.tv_nsec = abstime.tv_usec*1000; in evthread_posix_cond_wait()
|
| H A D | evutil_time.c | 407 ev_uint64_t abstime, usec; in evutil_gettime_monotonic_() local 415 abstime = mach_absolute_time(); in evutil_gettime_monotonic_() 416 usec = (abstime * base->mach_timebase_units.numer) in evutil_gettime_monotonic_()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/tsan/dd/ |
| H A D | dd_interceptors.cpp | 123 const timespec *abstime) { in INTERCEPTOR() argument 125 int res = REAL(pthread_rwlock_timedrdlock)(m, abstime); in INTERCEPTOR() 148 const timespec *abstime) { in INTERCEPTOR() argument 150 int res = REAL(pthread_rwlock_timedwrlock)(m, abstime); in INTERCEPTOR() 194 const timespec *abstime) { in INTERCEPTOR() argument 199 int res = REAL(pthread_cond_timedwait)(cond, m, abstime); in INTERCEPTOR()
|
| /freebsd/sbin/dmesg/ |
| H A D | dmesg.c | 68 struct timeval boottime, reltime, abstime; in main() local 243 timeradd(&boottime, &reltime, &abstime); in main() 246 localtime(&abstime.tv_sec)) != 0) { in main()
|
| /freebsd/sys/contrib/openzfs/lib/libspl/ |
| H A D | condvar.c | 71 cv_timedwait(kcondvar_t *cv, kmutex_t *mp, clock_t abstime) in cv_timedwait() argument 78 delta = abstime - ddi_get_lbolt(); in cv_timedwait()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_interceptors_posix.cpp | 1206 const struct timespec *abstime) { in TSAN_INTERCEPTOR() argument 1207 SCOPED_INTERCEPTOR_RAW(pthread_timedjoin_np, th, ret, abstime); in TSAN_INTERCEPTOR() 1210 int res = BLOCK_REAL(pthread_timedjoin_np)(th, ret, abstime); in TSAN_INTERCEPTOR() 1328 INTERCEPTOR(int, pthread_cond_timedwait, void *c, void *m, void *abstime) { in INTERCEPTOR() argument 1330 SCOPED_TSAN_INTERCEPTOR(pthread_cond_timedwait, cond, m, abstime); in INTERCEPTOR() 1333 [=]() { return REAL(pthread_cond_timedwait)(cond, m, abstime); }, cond, in INTERCEPTOR() 1339 __sanitizer_clockid_t clock, void *abstime) { in INTERCEPTOR() argument 1341 SCOPED_TSAN_INTERCEPTOR(pthread_cond_clockwait, cond, m, clock, abstime); in INTERCEPTOR() 1344 [=]() { return REAL(pthread_cond_clockwait)(cond, m, clock, abstime); }, in INTERCEPTOR() 1443 TSAN_INTERCEPTOR(int, pthread_mutex_timedlock, void *m, void *abstime) { in TSAN_INTERCEPTOR() argument [all …]
|
| /freebsd/sys/sys/ |
| H A D | _semaphore.h | 44 int ksem_timedwait(semid_t id, const struct timespec *abstime);
|
| /freebsd/sys/contrib/openzfs/lib/libspl/include/sys/ |
| H A D | condvar.h | 52 extern int cv_timedwait(kcondvar_t *cv, kmutex_t *mp, clock_t abstime);
|
| /freebsd/contrib/wpa/src/utils/ |
| H A D | os_unix.c | 120 uint64_t abstime, nano; in os_get_reltime() 128 abstime = mach_absolute_time(); in os_get_reltime() 129 nano = (abstime * info.numer) / info.denom; in os_get_reltime()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/ |
| H A D | hwasan_interceptors.cpp | 327 const struct timespec *abstime) { in INTERCEPTOR() argument 330 result = REAL(pthread_timedjoin_np)(thread, ret, abstime); in INTERCEPTOR()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/lsan/ |
| H A D | lsan_interceptors.cpp | 545 const struct timespec *abstime) { in INTERCEPTOR() argument 548 result = REAL(pthread_timedjoin_np)(thread, ret, abstime); in INTERCEPTOR()
|
| /freebsd/crypto/krb5/src/lib/krb5/krb/ |
| H A D | pac.c | 342 uint64_t abstime = ntTime / 10000000 - NT_TIME_EPOCH; in k5_time_to_seconds_since_1970() local 344 if (abstime > UINT32_MAX) in k5_time_to_seconds_since_1970() 346 *elapsedSeconds = abstime; in k5_time_to_seconds_since_1970()
|