forked from OSchip/llvm-project
AddSignalHandler was not releasing the critical section on win32.
Patch from Gianluigi Tiesi! llvm-svn: 100003
This commit is contained in:
parent
a87014f73d
commit
6fb0956291
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue