1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Prevent Cleanup() from running more than once.

llvm-svn: 237694
This commit is contained in:
Yaron Keren 2015-05-19 13:31:25 +00:00
parent 3bde7c1cd0
commit eb7b2581e2

View File

@ -441,6 +441,9 @@ void llvm::sys::AddSignalHandler(void (*FnPtr)(void *), void *Cookie) {
}
static void Cleanup() {
if (CleanupExecuted)
return;
EnterCriticalSection(&CriticalSection);
// Prevent other thread from registering new files and directories for