pambrose
09/10/2019, 8:33 PMelizarov
09/11/2019, 7:11 AMonLock
is not a listener when called the mutex was locked by something. onLock
is a select clause that instructs select expression to attempt acquiring a lock and call the corresponding block of code when this attempt succeeds.unlock()
a locked mutex, then onLock
select clause succeeds and you get the corresponding message.pambrose
09/11/2019, 2:31 PMClause for [select] expression of [lock] suspending function that selects when the mutex is unlocked.
Thanks for your answer. I really appreciate it.elizarov
09/11/2019, 2:41 PMpambrose
09/11/2019, 5:02 PM