Searched refs:abstime (Results 1 – 11 of 11) sorted by relevance
/Zephyr-latest/lib/posix/options/ |
D | timespec_to_timeout.c | 11 int64_t timespec_to_timeoutms(const struct timespec *abstime) in timespec_to_timeoutms() argument 21 secs = abstime->tv_sec - curtime.tv_sec; in timespec_to_timeoutms() 22 nsecs = abstime->tv_nsec - curtime.tv_nsec; in timespec_to_timeoutms()
|
D | rwlock.c | 30 int64_t timespec_to_timeoutms(const struct timespec *abstime); 199 const struct timespec *abstime) in pthread_rwlock_timedrdlock() argument 205 if (abstime->tv_nsec < 0 || abstime->tv_nsec > NSEC_PER_SEC) { in pthread_rwlock_timedrdlock() 209 timeout = (int32_t) timespec_to_timeoutms(abstime); in pthread_rwlock_timedrdlock() 272 const struct timespec *abstime) in pthread_rwlock_timedwrlock() argument 278 if (abstime->tv_nsec < 0 || abstime->tv_nsec > NSEC_PER_SEC) { in pthread_rwlock_timedwrlock() 282 timeout = (int32_t) timespec_to_timeoutms(abstime); in pthread_rwlock_timedwrlock()
|
D | semaphore.c | 160 int sem_timedwait(sem_t *semaphore, struct timespec *abstime) in sem_timedwait() argument 166 __ASSERT(abstime, "abstime pointer NULL"); in sem_timedwait() 168 if ((abstime->tv_sec < 0) || (abstime->tv_nsec >= NSEC_PER_SEC)) { in sem_timedwait() 177 abstime_ms = (int64_t)_ts_to_ms(abstime); in sem_timedwait()
|
D | cond.c | 18 int64_t timespec_to_timeoutms(const struct timespec *abstime); 167 int pthread_cond_timedwait(pthread_cond_t *cv, pthread_mutex_t *mut, const struct timespec *abstime) in pthread_cond_timedwait() argument 169 return cond_wait(cv, mut, K_MSEC((int32_t)timespec_to_timeoutms(abstime))); in pthread_cond_timedwait()
|
D | mqueue.c | 37 int64_t timespec_to_timeoutms(const struct timespec *abstime); 255 unsigned int msg_prio, const struct timespec *abstime) in mq_timedsend() argument 258 int32_t timeout = (int32_t) timespec_to_timeoutms(abstime); in mq_timedsend() 286 unsigned int *msg_prio, const struct timespec *abstime) in mq_timedreceive() argument 289 int32_t timeout = (int32_t) timespec_to_timeoutms(abstime); in mq_timedreceive()
|
D | mutex.c | 21 int64_t timespec_to_timeoutms(const struct timespec *abstime); 211 const struct timespec *abstime) in pthread_mutex_timedlock() argument 213 int32_t timeout = (int32_t)timespec_to_timeoutms(abstime); in pthread_mutex_timedlock()
|
D | pthread.c | 84 int64_t timespec_to_timeoutms(const struct timespec *abstime); 1146 int pthread_timedjoin_np(pthread_t pthread, void **status, const struct timespec *abstime) in pthread_timedjoin_np() argument 1148 if (abstime == NULL) { in pthread_timedjoin_np() 1152 if (abstime->tv_sec < 0 || abstime->tv_nsec < 0 || abstime->tv_nsec >= NSEC_PER_SEC) { in pthread_timedjoin_np() 1156 return pthread_timedjoin_internal(pthread, status, K_MSEC(timespec_to_timeoutms(abstime))); in pthread_timedjoin_np()
|
/Zephyr-latest/include/zephyr/posix/ |
D | mqueue.h | 41 unsigned int *msg_prio, const struct timespec *abstime); 43 unsigned int msg_prio, const struct timespec *abstime);
|
D | pthread.h | 108 const struct timespec *abstime); 217 const struct timespec *abstime); 432 int pthread_timedjoin_np(pthread_t thread, void **status, const struct timespec *abstime); 452 const struct timespec *abstime); 454 const struct timespec *abstime);
|
D | semaphore.h | 22 int sem_timedwait(sem_t *ZRESTRICT semaphore, struct timespec *ZRESTRICT abstime);
|
/Zephyr-latest/tests/posix/semaphores/src/ |
D | main.c | 28 struct timespec abstime; in semaphore_test() local 52 zassert_equal(clock_gettime(CLOCK_REALTIME, &abstime), 0, "clock_gettime failed"); in semaphore_test() 54 abstime.tv_sec += 5; in semaphore_test() 59 zassert_equal(sem_timedwait(sem, &abstime), 0); in semaphore_test() 64 zassert_equal(sem_timedwait(sem, &abstime), -1); in semaphore_test()
|