Versions Compared

Key

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

...

There are a number of operations that can be performed on a mutex, as summarized in the table below. However, in this chapter, we will only discuss the three functions that are most often used: OSMutexCreate(), OSMutexPend(), and OSMutexPost(). Other functions are described in µC-OS-III API Reference.

Panel
titleMutex API summary


Function NameOperation
OSMutexCreate()Create a mutex.
OSMutexDel()Delete a mutex.
OSMutexPend()Wait on a mutex.
OSMutexPendAbort()Abort the wait on a mutex.
OSMutexPost()Release a mutex.