From 6fb0956291ee170bab8cfbdada356c34d139481d Mon Sep 17 00:00:00 2001 From: Torok Edwin Date: Wed, 31 Mar 2010 12:07:16 +0000 Subject: [PATCH] AddSignalHandler was not releasing the critical section on win32. Patch from Gianluigi Tiesi! llvm-svn: 100003 --- llvm/lib/System/Win32/Signals.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/System/Win32/Signals.inc b/llvm/lib/System/Win32/Signals.inc index dba22185ac7f..f2b72ca70fdd 100644 --- a/llvm/lib/System/Win32/Signals.inc +++ b/llvm/lib/System/Win32/Signals.inc @@ -163,6 +163,7 @@ void sys::AddSignalHandler(void (*FnPtr)(void *), void *Cookie) { CallBacksToRun = new std::vector >(); CallBacksToRun->push_back(std::make_pair(FnPtr, Cookie)); RegisterHandler(); + LeaveCriticalSection(&CriticalSection); } }