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?
elizarov
03/16/2018, 6:19 PM
However, we might consider limited reentrancy with respect to user-provided token or identifier of the owner.