1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

AddSignalHandler was not releasing the critical section on win32.

Patch from Gianluigi Tiesi!

llvm-svn: 100003
This commit is contained in:
Torok Edwin 2010-03-31 12:07:16 +00:00
parent 967cac7bf6
commit ba2f97fcb0

View 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);
}
}