Is it planned to have a rentrant mutex?
# coroutines
j
Is it planned to have a rentrant mutex?
e
Nope. Reentrant mutex is conceptually incompatible with coroutines. Coroutines are ephemeral. They don’t even have identity. Any work that coroutine is doing can be decomposed to a work for another coroutine at any time. How would you define “reentrancy” in this world?
However, we might consider limited reentrancy with respect to user-provided token or identifier of the owner.
j
Yes, indeed it makes sense. Thanks for the answer