mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
Prevent Cleanup() from running more than once.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237694 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user