[Issue 22555] Recursively locked mutexes are not fully released by Condition.wait

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 30 19:13:35 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=22555

--- Comment #6 from FeepingCreature <default_357-line at yahoo.de> ---
No, because the way conditions work is that they unlock their associated mutex
while they wait as an atomic operation, ie. the condition and the mutex are
linked.

You can check this by removing the synchronized in the *task* in main, which
should be redundant with the one in wait - but then it works.

The problem is recursive mutexes interacting badly with conditions.

--


More information about the Digitalmars-d-bugs mailing list