Function condv_timedwait

Function Documentation

status_t condv_timedwait(struct condv *cv, struct mutex *mtx, const struct timespec *to)

Timed wait on a condition variable.

Parameters:
  • cv – The cv handle.

  • mtx – The mutex the wait pairs with.

  • to – A RELATIVE timeout, NOT an ABSOLUTE timeout, as the POSIX standard specifies. This function converts the relative timeout to absolute timeout required.

Returns:

status_t.