From 928071ae4ef5e2e6342afb126518a79fde81cf8b Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Mon, 19 Aug 2019 19:49:57 +0000 Subject: [Support] Replace sys::Mutex with their standard equivalents. Only use a recursive mutex if it can be locked recursively. llvm-svn: 369295 --- llvm/lib/Support/Unix/Process.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Support/Unix') 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 #if HAVE_FCNTL_H #include @@ -327,13 +326,13 @@ extern "C" int tigetnum(char *capname); #endif #ifdef HAVE_TERMINFO -static ManagedStatic TermColorMutex; +static ManagedStatic 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 G(*TermColorMutex); + std::lock_guard G(*TermColorMutex); int errret = 0; if (setupterm(nullptr, fd, &errret) != 0) -- cgit v1.2.3