wasm: remove message handler lock
We have now upgraded the minimum emsdk to one where Emscripten properly synchronizes stdout/stderr output. Change-Id: I537897b31916a52303a3fdb1d255f03b4aeaffef Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io> (cherry picked from commit 36fa489cb8e078b6b0c45647a4bef7260d78d7fb) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
afa7f494eb
commit
c58b7974fe
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user