Searched refs:abstime (Results 1 - 25 of 31) sorted by relevance

12

/freebsd-current/lib/libthr/thread/
H A Dthr_join.c38 const struct timespec *abstime);
64 const struct timespec *abstime)
66 if (abstime == NULL || abstime->tv_sec < 0 || abstime->tv_nsec < 0 ||
67 abstime->tv_nsec >= 1000000000)
70 return (join_common(pthread, thread_return, abstime, false));
85 const struct timespec *abstime, bool peek)
134 if (abstime != NULL) {
136 TIMESPEC_SUB(&ts2, abstime,
63 _pthread_timedjoin_np(pthread_t pthread, void **thread_return, const struct timespec *abstime) argument
84 join_common(pthread_t pthread, void **thread_return, const struct timespec *abstime, bool peek) argument
[all...]
H A Dthr_rwlock.c169 rwlock_rdlock_common(pthread_rwlock_t *rwlock, const struct timespec *abstime) argument
208 if (__predict_false(abstime &&
209 (abstime->tv_nsec >= 1000000000 || abstime->tv_nsec < 0)))
214 ret = __thr_rwlock_rdlock(&prwlock->lock, flags, abstime);
238 const struct timespec * __restrict abstime)
241 return (rwlock_rdlock_common(rwlock, abstime));
302 rwlock_wrlock_common(pthread_rwlock_t *rwlock, const struct timespec *abstime) argument
322 if (__predict_false(abstime &&
323 (abstime
237 _pthread_rwlock_timedrdlock(pthread_rwlock_t * __restrict rwlock, const struct timespec * __restrict abstime) argument
355 _pthread_rwlock_timedwrlock(pthread_rwlock_t * __restrict rwlock, const struct timespec * __restrict abstime) argument
[all...]
H A Dthr_sem.c62 const struct timespec * __restrict abstime);
71 const struct timespec * __restrict abstime);
106 const struct timespec * __restrict abstime)
108 return _libc_sem_timedwait_compat(sem, abstime);
105 _sem_timedwait_compat(sem_t * __restrict sem, const struct timespec * __restrict abstime) argument
H A Dthr_cond.c50 const struct timespec * abstime);
53 const struct timespec *abstime, int cancel);
205 const struct timespec *abstime, int cancel)
222 error = _thr_ucond_wait(&cvp->kcond, &mp->m_lock, abstime,
277 const struct timespec *abstime, int cancel)
318 error = _thr_sleep(curthread, cvp->kcond.c_clockid, abstime);
353 const struct timespec *abstime, int cancel)
376 return (cond_wait_kernel(cvp, mp, abstime, cancel));
378 return (cond_wait_user(cvp, mp, abstime, cancel));
399 const struct timespec * __restrict abstime)
204 cond_wait_kernel(struct pthread_cond *cvp, struct pthread_mutex *mp, const struct timespec *abstime, int cancel) argument
276 cond_wait_user(struct pthread_cond *cvp, struct pthread_mutex *mp, const struct timespec *abstime, int cancel) argument
352 cond_wait_common(pthread_cond_t *cond, pthread_mutex_t *mutex, const struct timespec *abstime, int cancel) argument
397 _thr_cond_timedwait(pthread_cond_t * __restrict cond, pthread_mutex_t * __restrict mutex, const struct timespec * __restrict abstime) argument
410 __pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex, const struct timespec *abstime) argument
[all...]
H A Dthr_umtx.c110 const struct timespec *abstime)
117 if (abstime == NULL) {
123 timeout._timeout = *abstime;
207 const struct timespec *abstime, int shared)
212 if (abstime == NULL) {
218 timeout._timeout = *abstime;
109 __thr_umutex_timedlock(struct umutex *mtx, uint32_t id, const struct timespec *abstime) argument
206 _thr_umtx_timedwait_uint(volatile u_int *mtx, u_int id, int clockid, const struct timespec *abstime, int shared) argument
H A Dthr_mutex.c66 const struct timespec * __restrict abstime);
76 const struct timespec *abstime);
648 const struct timespec *abstime)
655 return (mutex_self_lock(m, abstime));
698 if (abstime == NULL)
700 else if (__predict_false(abstime->tv_nsec < 0 ||
701 abstime->tv_nsec >= 1000000000))
704 ret = __thr_umutex_timedlock(&m->m_lock, id, abstime);
715 mutex_lock_common(struct pthread_mutex *m, const struct timespec *abstime, argument
733 ret = mutex_lock_sleep(curthread, m, abstime);
647 mutex_lock_sleep(struct pthread *curthread, struct pthread_mutex *m, const struct timespec *abstime) argument
757 __pthread_mutex_timedlock(pthread_mutex_t * __restrict mutex, const struct timespec * __restrict abstime) argument
883 mutex_self_lock(struct pthread_mutex *m, const struct timespec *abstime) argument
[all...]
H A Dthr_kern.c190 const struct timespec *abstime)
197 clockid, abstime, 0);
189 _thr_sleep(struct pthread *curthread, int clockid, const struct timespec *abstime) argument
/freebsd-current/contrib/libevent/
H A Devthread_pthread.c144 struct timeval now, abstime; local
147 evutil_timeradd(&now, tv, &abstime);
148 ts.tv_sec = abstime.tv_sec;
149 ts.tv_nsec = abstime.tv_usec*1000;
H A Devutil_time.c407 ev_uint64_t abstime, usec; local
415 abstime = mach_absolute_time();
416 usec = (abstime * base->mach_timebase_units.numer)
/freebsd-current/contrib/sendmail/libmilter/
H A Dmonitor.c117 struct timespec abstime; local
120 abstime.tv_sec = end;
121 abstime.tv_nsec = 0;
123 &abstime);
/freebsd-current/contrib/ntp/sntp/libevent/
H A Devthread_pthread.c144 struct timeval now, abstime; local
147 evutil_timeradd(&now, tv, &abstime);
148 ts.tv_sec = abstime.tv_sec;
149 ts.tv_nsec = abstime.tv_usec*1000;
H A Devutil_time.c407 ev_uint64_t abstime, usec; local
415 abstime = mach_absolute_time();
416 usec = (abstime * base->mach_timebase_units.numer)
/freebsd-current/sys/sys/
H A D_semaphore.h44 int ksem_timedwait(semid_t id, const struct timespec *abstime);
/freebsd-current/lib/libc/gen/
H A Dsem.c315 _umtx_wait_uint(volatile unsigned *mtx, unsigned id, const struct timespec *abstime) argument
320 if (abstime == NULL) {
326 timeout._timeout = *abstime;
365 const struct timespec * __restrict abstime)
390 if (abstime) {
391 if (abstime->tv_nsec >= 1000000000 || abstime->tv_nsec < 0) {
399 retval = _umtx_wait_uint(&(*sem)->count, 0, abstime);
364 _libc_sem_timedwait_compat(sem_t * __restrict sem, const struct timespec * __restrict abstime) argument
H A Dsem_new.c432 const struct timespec * __restrict abstime)
435 return (_sem_clockwait_np(sem, CLOCK_REALTIME, TIMER_ABSTIME, abstime,
431 _sem_timedwait(sem_t * __restrict sem, const struct timespec * __restrict abstime) argument
/freebsd-current/sys/kern/
H A Duipc_sem.c118 struct timespec *abstime);
767 const struct timespec *abstime; member in struct:ksem_timedwait_args
773 struct timespec abstime; local
780 if (uap->abstime == NULL)
783 error = copyin(uap->abstime, &abstime, sizeof(abstime));
786 if (abstime.tv_nsec >= 1000000000 || abstime.tv_nsec < 0)
788 ts = &abstime;
806 kern_sem_wait(struct thread *td, semid_t id, int tryflag, struct timespec *abstime) argument
991 struct timespec *ts, abstime; local
[all...]
/freebsd-current/contrib/llvm-project/compiler-rt/lib/tsan/dd/
H A Ddd_interceptors.cpp123 const timespec *abstime) {
125 int res = REAL(pthread_rwlock_timedrdlock)(m, abstime);
148 const timespec *abstime) {
150 int res = REAL(pthread_rwlock_timedwrlock)(m, abstime);
194 const timespec *abstime) {
199 int res = REAL(pthread_cond_timedwait)(cond, m, abstime);
122 INTERCEPTOR(int, pthread_rwlock_timedrdlock, pthread_rwlock_t *m, const timespec *abstime) argument
147 INTERCEPTOR(int, pthread_rwlock_timedwrlock, pthread_rwlock_t *m, const timespec *abstime) argument
193 INTERCEPTOR(int, pthread_cond_timedwait, pthread_cond_t *c, pthread_mutex_t *m, const timespec *abstime) argument
/freebsd-current/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_interceptors_posix.cpp1128 const struct timespec *abstime) {
1129 SCOPED_INTERCEPTOR_RAW(pthread_timedjoin_np, th, ret, abstime);
1132 int res = BLOCK_REAL(pthread_timedjoin_np)(th, ret, abstime);
1250 INTERCEPTOR(int, pthread_cond_timedwait, void *c, void *m, void *abstime) {
1252 SCOPED_TSAN_INTERCEPTOR(pthread_cond_timedwait, cond, m, abstime);
1255 [=]() { return REAL(pthread_cond_timedwait)(cond, m, abstime); }, cond,
1261 __sanitizer_clockid_t clock, void *abstime) {
1263 SCOPED_TSAN_INTERCEPTOR(pthread_cond_clockwait, cond, m, clock, abstime);
1266 [=]() { return REAL(pthread_cond_clockwait)(cond, m, clock, abstime); },
1365 TSAN_INTERCEPTOR(int, pthread_mutex_timedlock, void *m, void *abstime) {
1127 TSAN_INTERCEPTOR(int, pthread_timedjoin_np, void *th, void **ret, const struct timespec *abstime) argument
[all...]
/freebsd-current/contrib/wpa/src/utils/
H A Dos_unix.c120 uint64_t abstime, nano;
128 abstime = mach_absolute_time();
129 nano = (abstime * info.numer) / info.denom;
/freebsd-current/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_interceptors.cpp327 const struct timespec *abstime) {
330 result = REAL(pthread_timedjoin_np)(thread, ret, abstime);
326 INTERCEPTOR(int, pthread_timedjoin_np, void *thread, void **ret, const struct timespec *abstime) argument
/freebsd-current/contrib/llvm-project/compiler-rt/lib/lsan/
H A Dlsan_interceptors.cpp514 const struct timespec *abstime) {
517 result = REAL(pthread_timedjoin_np)(thread, ret, abstime);
513 INTERCEPTOR(int, pthread_timedjoin_np, void *thread, void **ret, const struct timespec *abstime) argument
/freebsd-current/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_interceptors.cpp326 const struct timespec *abstime) {
329 result = REAL(pthread_timedjoin_np)(thread, ret, abstime);
325 INTERCEPTOR(int, pthread_timedjoin_np, void *thread, void **ret, const struct timespec *abstime) argument
/freebsd-current/sys/contrib/openzfs/lib/libzpool/
H A Dkernel.c360 cv_timedwait(kcondvar_t *cv, kmutex_t *mp, clock_t abstime) argument
367 delta = abstime - ddi_get_lbolt();
/freebsd-current/sys/contrib/openzfs/include/sys/
H A Dzfs_context.h332 extern int cv_timedwait(kcondvar_t *cv, kmutex_t *mp, clock_t abstime);
/freebsd-current/contrib/llvm-project/compiler-rt/include/sanitizer/
H A Dnetbsd_syscall_hooks.h1344 #define __sanitizer_syscall_pre__ksem_timedwait(id, abstime) \
1346 (long long)(abstime))
1347 #define __sanitizer_syscall_post__ksem_timedwait(res, id, abstime) \
1349 (long long)(abstime))
3864 long long abstime);
3866 long long abstime);

Completed in 435 milliseconds

12