Versions Compared

Key

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

...

Files

os.h/os_mutex.c

Prototype

Code Block
OS_OBJ_QTY  OSMutexDel (OS_MUTEX  *p_mutex,
                        OS_OPT     opt,
                        OS_ERR    *p_err)

Arguments

p_mutex

is a pointer to the mutex to delete.

...

  1. Use this call with care as other tasks may expect the presence of the mutex.

Example Usage

Code Block
titleOSMutexDel() example usage
          OS_MUTEX  DispMutex;
           
           
          void Task (void *p_arg)
          {
              OS_ERR      err;
              OS_OBJ_QTY  qty;
           
           
              (void)&p_arg;
              while (DEF_ON) {
                  :
                  :
                  qty = OSMutexDel(&DispMutex,
                                    OS_OPT_DEL_ALWAYS,
                                   &err);
                  /* Check "err" */
                  :
                  :
              }
          }