Differences

This shows you the differences between two versions of the page.

chibios:articles:semaphores_mutexes [2011/10/03 20:41]
giovanni [Counting Semaphores, Binary Semaphores and Mutexes explained]
chibios:articles:semaphores_mutexes [2012/06/05 19:49] (current)
giovanni [Mutexes]
Line 83: Line 83:
 Two operations are defined for mutexes: Two operations are defined for mutexes:
   * **Lock** (''chMtxLock()'' in ChibiOS/RT). This operation attempts to take ownership of a mutex, if the mutex is already owned by another thread then the invoking thread is queued.   * **Lock** (''chMtxLock()'' in ChibiOS/RT). This operation attempts to take ownership of a mutex, if the mutex is already owned by another thread then the invoking thread is queued.
-  * **Unlock**  (''chMtxUnlok()'' in ChibiOS/RT). This operation relinquishes ownership of a mutex. If there are queued threads then a thread is removed from the queue and resumed, ownership is implicitly assigned to the thread.+  * **Unlock**  (''chMtxUnlock()'' in ChibiOS/RT). This operation relinquishes ownership of a mutex. If there are queued threads then a thread is removed from the queue and resumed, ownership is implicitly assigned to the thread.
  
 {{  chibios:articles:mutex.png  |Mutexes states diagram}} {{  chibios:articles:mutex.png  |Mutexes states diagram}}
 
chibios/articles/semaphores_mutexes.txt · Last modified: 2012/06/05 19:49 by giovanni
 
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.3