projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7141b3d
)
Prevent Cleanup() from running more than once.
author
Yaron Keren
<yaron.keren@gmail.com>
Tue, 19 May 2015 13:31:25 +0000
(13:31 +0000)
committer
Yaron Keren
<yaron.keren@gmail.com>
Tue, 19 May 2015 13:31:25 +0000
(13:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237694
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/Windows/Signals.inc
patch
|
blob
|
history
diff --git
a/lib/Support/Windows/Signals.inc
b/lib/Support/Windows/Signals.inc
index d81d3c8b90bb14cdb09a5db75eca60fbb144c70b..26c3c6e111ab55039100760c2a3a71d84a55d70e 100644
(file)
--- a/
lib/Support/Windows/Signals.inc
+++ b/
lib/Support/Windows/Signals.inc
@@
-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