AddSignalHandler was not releasing the critical section on win32.
authorTorok Edwin <edwintorok@gmail.com>
Wed, 31 Mar 2010 12:07:16 +0000 (12:07 +0000)
committerTorok Edwin <edwintorok@gmail.com>
Wed, 31 Mar 2010 12:07:16 +0000 (12:07 +0000)
Patch from Gianluigi Tiesi!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100003 91177308-0d34-0410-b5e6-96231b3b80d8

lib/System/Win32/Signals.inc

index dba2218..f2b72ca 100644 (file)
@@ -163,6 +163,7 @@ void sys::AddSignalHandler(void (*FnPtr)(void *), void *Cookie) {
     CallBacksToRun = new std::vector<std::pair<void(*)(void*), void*> >();
   CallBacksToRun->push_back(std::make_pair(FnPtr, Cookie));
   RegisterHandler();
+  LeaveCriticalSection(&CriticalSection);
 }
 }