Functions | |
uint8_t | otosTestAndSet (uint8_t *pLock) |
Test and set a lock (integer variable). | |
uint8_t | otosLockMutex (OtosMutex *pMutex, uint32_t timeout) |
Lock a mutex. | |
uint8_t | otosUnlockMutex (OtosMutex *pMutex) |
Unlock a mutex. |
|
Lock a mutex. If the mutex is already locked, the task gets blocked. It is woken up again when the mutex is unlocked by another task.
Definition at line 104 of file mutex.c. References g_pRunningTask, otosBlock, and otosTestAndSet(). |
|
Test and set a lock (integer variable). A lock is either locked (1) or unlocked (0).
Definition at line 66 of file mutex.c. Referenced by otosLockMutex(). |
|
Unlock a mutex. If a task waits for this mutex, it is woken up.
Definition at line 161 of file mutex.c. References g_pBlockedQueue, g_performDispatch, g_pRunningTask, otosScheduler(), and otosWakeup(). |