22 Jul
2022
22 Jul
'22
7:34 p.m.
Piotr Caban (@piotr) commented about dlls/msvcrt/concurrency.c:
+ operator_delete(cached_context); + cached_context = NULL; + } + if (!cached_context) + { + cached_context = context; + context = NULL; + } + LeaveCriticalSection(&cached_context_cs); + if (context) + { + ExternalContextBase_dtor(context); + operator_delete(context); + } +} + This needs some tests (maybe ThreadScheduler is doing the caching). I would suggest focusing on it later, when other _StructuredTaskCollection patches are in.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/464#note_4774