Function csem_timedwait

Function Documentation

status_t csem_timedwait(struct csem *sem, const struct timespec *to)

Wait on a counting semaphore with a timeout.

Parameters:
  • sem – The semaphore handle.

  • 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.