osMutexWait() function
Wait until a Mutex becomes available
Arguments
mutex_id
mutex ID obtained by osMutexCreate.
millisec
timeout value or 0 in case of no time-out.
Return value
status code that indicates the execution status of the function.
Notes
MUST REMAIN UNCHANGED: \b osMutexWait shall be consistent in every CMSIS-RTOS.
osMutexWait() calls 3 functions:
![]()
osMutexWait()
osMutexWait() reads 3 variables:
![]()
osMutexWait()