wasm: Drop using deprecated function
The `emscripten_main_browser_thread_id()` has been deprecated in favor of `emscripten_main_runtime_thread_id()`. Using the deprecated one generates a warning during compilation. Change-Id: I1154bd8ff78f13e6425fdc65ac39763569360da6 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>bb10
parent
09c46d63af
commit
068f19ea39
|
|
@ -229,7 +229,7 @@ namespace qstdweb {
|
|||
T proxyCall(std::function<T()> task, emscripten::ProxyingQueue *queue)
|
||||
{
|
||||
T result;
|
||||
queue->proxySync(emscripten_main_browser_thread_id(),
|
||||
queue->proxySync(emscripten_main_runtime_thread_id(),
|
||||
[task, result = &result]() { *result = task(); });
|
||||
return result;
|
||||
}
|
||||
|
|
@ -237,7 +237,7 @@ namespace qstdweb {
|
|||
template<>
|
||||
inline void proxyCall<void>(std::function<void()> task, emscripten::ProxyingQueue *queue)
|
||||
{
|
||||
queue->proxySync(emscripten_main_browser_thread_id(), task);
|
||||
queue->proxySync(emscripten_main_runtime_thread_id(), task);
|
||||
}
|
||||
|
||||
template<class T>
|
||||
|
|
|
|||
Loading…
Reference in New Issue