Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions lldb/tools/debugserver/source/DNBLog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ static int g_verbose = 0;

#if defined(DNBLOG_ENABLED)

#include "PThreadMutex.h"
#include <cstdarg>
#include <cstdio>
#include <cstdlib>
Expand Down Expand Up @@ -64,8 +63,8 @@ bool DNBLogEnabledForAny(uint32_t mask) {
}
static inline void _DNBLogVAPrintf(uint32_t flags, const char *format,
va_list args) {
static PThreadMutex g_LogThreadedMutex(PTHREAD_MUTEX_RECURSIVE);
PTHREAD_MUTEX_LOCKER(locker, g_LogThreadedMutex);
static std::recursive_mutex g_LogThreadedMutex;
std::lock_guard<std::recursive_mutex> guard(g_LogThreadedMutex);

if (g_log_callback)
g_log_callback(g_log_baton, flags, format, args);
Expand Down
Loading