[RTL]
authorThomas Faber <thomas.faber@reactos.org>
Sun, 12 Oct 2014 20:45:32 +0000 (20:45 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sun, 12 Oct 2014 20:45:32 +0000 (20:45 +0000)
commitb62c7585267a3e8ce8facf24b7e90d5aaca6e9b6
tree8b185ff84d0ed2297bb81ec41d96e999f3133adb
parentae24fd4e410dc8ec4f02752aa8f417eae7d405dc
[RTL]
- Allow the thread that called LdrShutdownProcess to forcefully acquire critical sections (the loader lock in particular).
This fixes the race condition where ExitProcess might terminate a thread holding the loader lock and subsequently call LdrShutdownProcess. That would then result in a deadlock because LdrShutdownProcess cannot acquire the loader lock.
This is a pretty ugly hack... but at least Windows does it the same way.
Fixes hangs after the summary line when running mshtml tests.
CORE-8624 #resolve

svn path=/trunk/; revision=64702
reactos/lib/rtl/critical.c