We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2be20e1 + 0755e02 commit 082fab3Copy full SHA for 082fab3
lldb/tools/debugserver/source/DNBLog.cpp
@@ -17,7 +17,6 @@ static int g_verbose = 0;
17
18
#if defined(DNBLOG_ENABLED)
19
20
-#include "PThreadMutex.h"
21
#include <cstdarg>
22
#include <cstdio>
23
#include <cstdlib>
@@ -64,8 +63,8 @@ bool DNBLogEnabledForAny(uint32_t mask) {
64
63
}
65
static inline void _DNBLogVAPrintf(uint32_t flags, const char *format,
66
va_list args) {
67
- static PThreadMutex g_LogThreadedMutex(PTHREAD_MUTEX_RECURSIVE);
68
- PTHREAD_MUTEX_LOCKER(locker, g_LogThreadedMutex);
+ static std::recursive_mutex g_LogThreadedMutex;
+ std::lock_guard<std::recursive_mutex> guard(g_LogThreadedMutex);
69
70
if (g_log_callback)
71
g_log_callback(g_log_baton, flags, format, args);
0 commit comments