Re: [PATCH v3 0/1] MR3319: evr: Leave critical section before waiting for streaming thread.
26 Jul
2023
26 Jul
'23
3:17 p.m.
Nikolay Sivov (@nsivov) commented about dlls/evr/presenter.c:
PostThreadMessageW(presenter->thread.tid, EVRM_STOP, 0, 0);
+ /* Make sure streaming thread is not blocked by critical section before waiting for it. */ + LeaveCriticalSection(&presenter->cs); WaitForSingleObject(presenter->thread.hthread, INFINITE); CloseHandle(presenter->thread.hthread); + EnterCriticalSection(&presenter->cs);
This should be arranged differently, you can't generally assume that you've entered this lock when calling the helper. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/3319#note_40348
881
Age (days ago)
881
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nikolay Sivov (@nsivov)