mutex_enter_timeout_ms() function
Wait for mutex with timeout Wait for up to the specific time to take ownership of the mutex. If the caller can be granted ownership of the mutex before the timeout expires, then true will be returned and the caller will own the mutex, otherwise false will be returned and the caller will NOT own the mutex.
Arguments
mtx
Pointer to mutex structure
timeout_ms
The timeout in milliseconds.
Return value
true if mutex now owned, false if timeout occurred before ownership could be granted
mutex_enter_timeout_ms() calls 2 functions:
![]()
mutex_enter_timeout_ms()
mutex_enter_timeout_ms():
![]()
mutex_enter_timeout_ms()