diff options
| author | Morten Sørvig <morten.sorvig@qt.io> | 2024-12-19 15:05:56 +0100 |
|---|---|---|
| committer | Morten Sørvig <morten.sorvig@qt.io> | 2025-03-03 18:24:43 +0100 |
| commit | 9df167a013b6db0957e35d3924e331a145d518b2 (patch) | |
| tree | 20b01ca440c181078f5f19baab2df5e0654fed74 /src/network/access/qnetworkreplywasmimpl.cpp | |
| parent | b80deb26280ad693cd24fe5e723b385bf9ffa15b (diff) | |
wasm: introduce qwasmglobal_p.h
Global helpers/utils for Q_OS_WASM.
Move the thread proxying functions to qwasmglobal_p.h,
and update calling code.
qtstweb_p.h now contains C++ wrappers for native web
API only. The proxying functions will be removed from
qeventdispatcher_wasm in a later commit.
Change-Id: I08a56c211b08929750970895b63ca48d4a07a0a1
Reviewed-by: Lorn Potter <lorn.potter@qt.io>
Diffstat (limited to 'src/network/access/qnetworkreplywasmimpl.cpp')
| -rw-r--r-- | src/network/access/qnetworkreplywasmimpl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/access/qnetworkreplywasmimpl.cpp b/src/network/access/qnetworkreplywasmimpl.cpp index 7d225c7e862..1bcf32e643a 100644 --- a/src/network/access/qnetworkreplywasmimpl.cpp +++ b/src/network/access/qnetworkreplywasmimpl.cpp @@ -9,7 +9,7 @@ #include <QtCore/qcoreapplication.h> #include <QtCore/qfileinfo.h> #include <QtCore/qthread.h> -#include <QtCore/private/qeventdispatcher_wasm_p.h> +#include <QtCore/private/qwasmglobal_p.h> #include <QtCore/private/qoffsetstringarray_p.h> #include <QtCore/private/qtools_p.h> @@ -281,7 +281,7 @@ void QNetworkReplyWasmImplPrivate::doSendRequest() } } - QEventDispatcherWasm::runOnMainThread([attr, fetchContext = m_fetchContext]() mutable { + qwasmglobal::runOnMainThread([attr, fetchContext = m_fetchContext]() mutable { std::unique_lock lock{ fetchContext->mutex }; if (fetchContext->state == FetchContext::State::CANCELED) { fetchContext->state = FetchContext::State::FINISHED; |
