diff options
author | Morten Sørvig <morten.sorvig@qt.io> | 2022-05-24 14:44:57 +0200 |
---|---|---|
committer | Morten Sørvig <morten.sorvig@qt.io> | 2022-07-06 17:56:58 +0200 |
commit | 36fa489cb8e078b6b0c45647a4bef7260d78d7fb (patch) | |
tree | b7b9c612252fab08b9ba3d55a4513e8286174520 /src/corelib/global/qlogging.cpp | |
parent | 9be0f2945d404ceb743e4805f7df388c7fd039f1 (diff) |
wasm: remove message handler lock
We have now upgraded the minimum emsdk to one where Emscripten properly
synchronizes stdout/stderr output.
Pick-to: 6.4
Change-Id: I537897b31916a52303a3fdb1d255f03b4aeaffef
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/corelib/global/qlogging.cpp')
-rw-r--r-- | src/corelib/global/qlogging.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/corelib/global/qlogging.cpp b/src/corelib/global/qlogging.cpp index 4a80b1c5c6..94ec78f382 100644 --- a/src/corelib/global/qlogging.cpp +++ b/src/corelib/global/qlogging.cpp @@ -1789,13 +1789,6 @@ static void stderr_message_handler(QtMsgType type, const QMessageLogContext &con if (formattedMessage.isNull()) return; -#ifdef Q_OS_WASM - // Prevent thread cross-talk, which causes Emscripten to log - // non-valid UTF-8. FIXME: remove once we upgrade to emsdk > 2.0.30 - Q_CONSTINIT static QBasicMutex m; - auto locker = qt_unique_lock(m); -#endif - fprintf(stderr, "%s\n", formattedMessage.toLocal8Bit().constData()); fflush(stderr); } |