On Wed Jul 26 15:17:52 2023 +0000, Nikolay Sivov wrote:
This should be arranged differently, you can't generally assume that you've entered this lock when calling the helper.
mmm, what about adding a timeout for WaitForSingleObject and do the LeaveCriticalSection if the timeout passed? Not sure how long it should be.