Re:What could Go wrong with a mutex
by gpderetta on Wednesday November 03, 2021 @11:27AM
(#29096015)
The async_{read,write} variant never blocks nor has a while loop, it is just a four continuations recursively tail calling each other. Yet it deadlocks (as it is a purely mechanical transformation of the synchronous variant). It still might be possible that the precise pony scoping rules for closures prevent writing that variant, but I would be surprised.
[ Parent
| on HN ]
There are no comments on this comment yet.