![]() |
posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
|
POSIX Clock Selection option group. More...
Functions | |
| int | clock_nanosleep (clockid_t clock_id, int flags, const struct timespec *rqtp, struct timespec *rmtp) |
| High-resolution sleep against a specified clock. | |
| int | pthread_cond_clockwait (pthread_cond_t *ZRESTRICT cond, pthread_mutex_t *ZRESTRICT mutex, clockid_t clock_id, const struct timespec *ZRESTRICT abstime) |
| Wait on a condition variable with a specific clock. | |
POSIX Clock Selection option group.
| int clock_nanosleep | ( | clockid_t | clock_id, |
| int | flags, | ||
| const struct timespec * | rqtp, | ||
| struct timespec * | rmtp | ||
| ) |
High-resolution sleep against a specified clock.
| clock_id | Clock to measure the sleep against. |
| flags | 0 for a relative sleep, TIMER_ABSTIME for an absolute wakeup time. |
| rqtp | Requested sleep duration or absolute wakeup time. |
| rmtp | Output: remaining time if interrupted (only for relative sleeps), or NULL. |
| int pthread_cond_clockwait | ( | pthread_cond_t *ZRESTRICT | cond, |
| pthread_mutex_t *ZRESTRICT | mutex, | ||
| clockid_t | clock_id, | ||
| const struct timespec *ZRESTRICT | abstime | ||
| ) |
Wait on a condition variable with a specific clock.
| cond | Condition variable. |
| mutex | Associated mutex (must be locked by the caller). |
| clock_id | Clock used to interpret abstime. |
| abstime | Absolute timeout. |
ETIMEDOUT on timeout, or a positive error number on failure.