Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

is a pointer to a variable used to hold an error code.

OS_ERR_NONE

if a signal is received.

OS_ERR_PEND_ABORT

if the pend was aborted because another task called OSTaskSemPendAbort().

OS_ERR_PEND_ISR

if OS_CFG_CALLED_FROM_ISR_CHK_EN set to 1 in os_cfg.h: if calling this function from an ISR.

OS_ERR_PEND_WOULD_BLOCK

if calling this function with the opt argument set to OS_OPT_PEND_NON_BLOCKING, and no signal was received.

OS_ERR_SCHED_LOCKED

if calling this function when the scheduler is locked and the user wanted the task to block.

OS_ERR_TIMEOUT

if a signal is not received within the specified timeout.

Returned Value

The current value of the signal counter after it has been decremented. In other words, the number of signals still remaining in the signal counter.

...