Versions Compared

Key

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

...

determines the type of abort to be performed.

OS_OPT_PEND_ABORT_1

Aborts the pend of only the highest-priority task waiting on the message queue.

OS_OPT_PEND_ABORT_ALL

Aborts the pend of all tasks waiting on the message queue.

OS_OPT_POST_NO_SCHED

specifies that the scheduler should not be called, even if the pend of a higher-priority task has been aborted. Scheduling will need to occur from another function.

You would use this option if the task calling OSQPendAbort() is doing additional pend aborts, rescheduling is not performed until completion, and multiple pend aborts are to take effect simultaneously.

 

p_err

is a pointer to a variable that holds an error code:

OS_ERR_NONE

at least one task waiting on the message queue was readied and informed of the aborted wait. Check the return value for the number of tasks whose wait on the message queue was aborted.

OS_ERR_PEND_ABORT_ISR

If OS_CFG_CALLED_FROM_ISR_CHK_EN set to 1 in os_cfg.h: if called from an ISR

...