From 03d28dde1635e36508cff1f9eabc265cdb5febb9 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 16 Jan 2019 05:58:48 +0100 Subject: compat/mutex: remove Always use the adaptive QMutex. --- gui/init.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gui') diff --git a/gui/init.cpp b/gui/init.cpp index 5ed4ca00..07f6c6b1 100644 --- a/gui/init.cpp +++ b/gui/init.cpp @@ -27,6 +27,7 @@ using namespace options; #include #include #include +#include #include @@ -101,7 +102,6 @@ static void set_qt_style() #endif } -#include "compat/spinlock.hpp" #include #ifdef _WIN32 @@ -118,8 +118,8 @@ static void qdebug_to_console(QtMsgType, const QMessageLogContext& ctx, const QS if (IsDebuggerPresent()) { - static std::atomic_flag lock = ATOMIC_FLAG_INIT; - spinlock_guard l(lock); + static QMutex lock; + QMutexLocker l(&lock); const wchar_t* const bytes = (const wchar_t*)msg.utf16(); -- cgit v1.2.3