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.