diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2019-08-19 19:49:57 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2019-08-19 19:49:57 +0000 |
commit | 928071ae4ef5e2e6342afb126518a79fde81cf8b (patch) | |
tree | 3553e54db7f1bc27ba0585fe6cef1efbd8a7b9c4 /llvm/lib/Support/Unix/Process.inc | |
parent | 056f1b5cc7c2133f0cb3e30e7f24808d321096d7 (diff) | |
download | bcm5719-llvm-928071ae4ef5e2e6342afb126518a79fde81cf8b.tar.gz bcm5719-llvm-928071ae4ef5e2e6342afb126518a79fde81cf8b.zip |
[Support] Replace sys::Mutex with their standard equivalents.
Only use a recursive mutex if it can be locked recursively.
llvm-svn: 369295
Diffstat (limited to 'llvm/lib/Support/Unix/Process.inc')
-rw-r--r-- | llvm/lib/Support/Unix/Process.inc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Support/Unix/Process.inc b/llvm/lib/Support/Unix/Process.inc index 86101e47391..dfe81d7e283 100644 --- a/llvm/lib/Support/Unix/Process.inc +++ b/llvm/lib/Support/Unix/Process.inc @@ -15,7 +15,6 @@ #include "llvm/ADT/StringRef.h" #include "llvm/Config/config.h" #include "llvm/Support/ManagedStatic.h" -#include "llvm/Support/Mutex.h" #include <mutex> #if HAVE_FCNTL_H #include <fcntl.h> @@ -327,13 +326,13 @@ extern "C" int tigetnum(char *capname); #endif #ifdef HAVE_TERMINFO -static ManagedStatic<sys::Mutex> TermColorMutex; +static ManagedStatic<std::mutex> TermColorMutex; #endif static bool terminalHasColors(int fd) { #ifdef HAVE_TERMINFO // First, acquire a global lock because these C routines are thread hostile. - std::lock_guard<sys::Mutex> G(*TermColorMutex); + std::lock_guard<std::mutex> G(*TermColorMutex); int errret = 0; if (setupterm(nullptr, fd, &errret) != 0) |