http://bugs.winehq.org/show_bug.cgi?id=59017
Bug ID: 59017 Summary: Synchronization barrier cannot be entered multiple times Product: Wine Version: 10.19 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@list.winehq.org Reporter: m101010a@gmail.com Distribution: ---
Created attachment 79756 --> http://bugs.winehq.org/attachment.cgi?id=79756 Sample program from The Old New Thing
When running the sample program at https://devblogs.microsoft.com/oldnewthing/20151123-00/?p=92161 (also attached as sample.c), the second call to EnterSynchronizationBarrier does not work properly. Instead of returning false and blocking for the first 3 threads and then returning true for the last thread, it returns true and does not block all 4 times, causing the program to print "Locking the door" 4 times instead of only once, and causing the threads to not synchronize between printing "Leaving the room" and "Saying good-bye and going home".
http://bugs.winehq.org/show_bug.cgi?id=59017
Paul Gofman pgofman@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pgofman@codeweavers.com
http://bugs.winehq.org/show_bug.cgi?id=59017
--- Comment #1 from Paul Gofman pgofman@codeweavers.com --- Thanks for the report!
I sent the MR to support such a case: https://gitlab.winehq.org/wine/wine/-/merge_requests/9557
http://bugs.winehq.org/show_bug.cgi?id=59017
Paul Gofman pgofman@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Fixed by SHA1| |b90044a3d5618a227ce620e3f03 | |86d2ae79926f0 Resolution|--- |FIXED
--- Comment #2 from Paul Gofman pgofman@codeweavers.com --- Should be fixed by b90044a3d5618a227ce620e3f0386d2ae79926f0 .