Mutex

A mutex provides mutual exclusion between tasks when they access a shared resource such as data or a device. Mutexes provide polling, FIFO queuing, priority queuing, spin-only and limited-spin queuing, priority inheritance, and priority protection. Mutexes are strict, which means that, unless a task had locked a mutex, it cannot unlock it.

The difference between the Mutex component in the standard MQX and the MQX Lite is minimal and involves statistical allocation of certain internal resources in MQX Lite. The list of Mutex component API functions ( _mutex_ , _mutatr_ prefixes) is provided together with detailed description of each function in the Freescale MQX™ Lite RTOS Reference Manual (MQXLITERM).

See the MUTEX MQX Lite example code for the demonstration of the correct Mutex component usage. See MQX Lite Demo Applications for information about location of MQX Lite examples.




This Information Center content is based on MQXLITEUG Rev 1.1, 09/2013, which can be downloaded from www.freescale.com.