Versions Compared

Key

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

...

Files

os.h/os_q.c

Prototype

Code Block
OS_OBJ_QTY  OSQPendAbort (OS_Q    *p_q,
                          OS_OPT   opt,
                          OS_ERR  *p_err)

Arguments

p_q

is a pointer to the queue for which pend(s) need to be aborted.

...

  1. Queues must be created before they are used.

Example Usage

Code Block
titleOSQPendAbort() example usage
          OS_Q  CommQ;
           
           
          void CommTask(void *p_arg)
          {
              OS_ERR      err;
              OS_OBJ_QTY  nbr_tasks;
           
           
              (void)&p_arg;
              while (DEF_ON) {
                  :
                  :
                  nbr_tasks = OSQPendAbort(&CommQ,
                                            OS_OPT_PEND_ABORT_ALL,
                                           &err);
                  /* Check "err" */
                  :
                  :
              }
          }