aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Unix/Signals.inc
diff options
context:
space:
mode:
authorDylan Noblesmith <nobled@dreamwidth.org>2014-08-23 22:49:22 +0000
committerDylan Noblesmith <nobled@dreamwidth.org>2014-08-23 22:49:22 +0000
commit13044d1cc509cfff90ff37532353b16c676b50ca (patch)
tree49682bf4ce953c99ec8032413c04fdb141b20d6a /llvm/lib/Support/Unix/Signals.inc
parent4704ffe1641bd7d7d9366dacb179df0f222e5aa5 (diff)
downloadllvm-13044d1cc509cfff90ff37532353b16c676b50ca.zip
llvm-13044d1cc509cfff90ff37532353b16c676b50ca.tar.gz
llvm-13044d1cc509cfff90ff37532353b16c676b50ca.tar.bz2
Support: make LLVM Mutexes STL-compatible
Use lock/unlock() convention instead of acquire/release(). llvm-svn: 216336
Diffstat (limited to 'llvm/lib/Support/Unix/Signals.inc')
-rw-r--r--llvm/lib/Support/Unix/Signals.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Support/Unix/Signals.inc b/llvm/lib/Support/Unix/Signals.inc
index 8161bfb..34c39c9 100644
--- a/llvm/lib/Support/Unix/Signals.inc
+++ b/llvm/lib/Support/Unix/Signals.inc
@@ -162,24 +162,24 @@ static RETSIGTYPE SignalHandler(int Sig) {
sigfillset(&SigMask);
sigprocmask(SIG_UNBLOCK, &SigMask, nullptr);
- SignalsMutex.acquire();
+ SignalsMutex.lock();
RemoveFilesToRemove();
if (std::find(IntSigs, IntSigsEnd, Sig) != IntSigsEnd) {
if (InterruptFunction) {
void (*IF)() = InterruptFunction;
- SignalsMutex.release();
+ SignalsMutex.unlock();
InterruptFunction = nullptr;
IF(); // run the interrupt function.
return;
}
- SignalsMutex.release();
+ SignalsMutex.unlock();
raise(Sig); // Execute the default handler.
return;
}
- SignalsMutex.release();
+ SignalsMutex.unlock();
// Otherwise if it is a fault (like SEGV) run any handler.
for (unsigned i = 0, e = CallBacksToRun.size(); i != e; ++i)