Versions Compared

Key

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

...

Files

os.h/os_task.c

Prototype

Code Block
CPU_BOOLEAN  OSTaskQPendAbort (OS_TCB  *p_tcb,
                               OS_OPT   opt,
                               OS_ERR  *p_err)

Arguments

p_tcb

is a pointer to the task for which the pend needs to be aborted. Note that it doesn’t make sense to pass a NULL pointer or the address of the calling task’s TCB since, by definition, the calling task cannot be pending.

...

Notes/Warnings

None

Example Usage

Code Block
titleOSTaskQPendAbort() example usage
          OS_TCB  CommRxTaskTCB;
           
           
          void CommTask (void *p_arg)
          {
              OS_ERR       err;
              CPU_BOOLEAN  aborted;
           
           
              (void)&p_arg;
              while (DEF_ON) {
                  :
                  :
                  aborted = OSTaskQPendAbort(&CommRxTaskTCB,
                                              OS_OPT_POST_NONE,
                                             &err);
                  /* Check "err" */
                  :
                  :
              }
          }