| ▲ | gpderetta 10 hours ago | |||||||||||||||||||||||||
A mutex is a way to guarantee mutual exclusion nothing more nothing less; You can recover synchronous behaviour if you really want: | ||||||||||||||||||||||||||
| ▲ | mgaunard 10 hours ago | parent [-] | |||||||||||||||||||||||||
that isn't a mutex, that's delegating work asynchronously and delegating something else to run when it is complete (the implicitly defined continuation through coroutines). In systems programming parlance, a mutex is a resource which can be acquired and released, acquired exactly once, and blocks on acquire if already acquired. | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||