mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Prevent Cleanup() from running more than once.
llvm-svn: 237694
This commit is contained in:
parent
3bde7c1cd0
commit
eb7b2581e2
@ -441,6 +441,9 @@ void llvm::sys::AddSignalHandler(void (*FnPtr)(void *), void *Cookie) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void Cleanup() {
|
static void Cleanup() {
|
||||||
|
if (CleanupExecuted)
|
||||||
|
return;
|
||||||
|
|
||||||
EnterCriticalSection(&CriticalSection);
|
EnterCriticalSection(&CriticalSection);
|
||||||
|
|
||||||
// Prevent other thread from registering new files and directories for
|
// Prevent other thread from registering new files and directories for
|
||||||
|
Loading…
Reference in New Issue
Block a user