KosMutexLockTimeout()
KosMutexLockTimeout()
This function is declared in the kos/mutex.h
file.
Retcode KosMutexLockTimeout(KosMutex *mutex, rtl_uint32_t mdelay);
Captures the specified mutex
.
If the mutex is already captured, the thread is locked for mdelay
and waits to be unlocked.
This function returns rcOk if successful, or rcTimeout if it times out.
Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.