Comment by mgaunard
3 months ago
They're not, the interactions with the memory model are different, as are the guarantees.
CPS shouldn't be able to deadlock for example?
3 months ago
They're not, the interactions with the memory model are different, as are the guarantees.
CPS shouldn't be able to deadlock for example?
CPS can trivially deadlock for all meaningful definitions of deadlock.
Would you consider this a mutex?
What about: my_mutex mux;
where the code runs in a user space fiber.
Would you consider boost synchronized a mutex?
Don't confuse the semantics with the implementation details (yes async/await leaks implementation details).
You only achieved a deadlock by re-introducing mutexes.
Given:
1:
2:
3:
4:
If 1 is a mutex, at which point it stops being a mutex? Note that 4 is my initial example.
3 replies →