Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qohosmemoizingjsthreadfetcher.cpp
Go to the documentation of this file.
1// Copyright (C) 2026 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
5#include <QtCore/private/qohoslogger_p.h>
6#include <exception>
7
9
11
15
20
21FetcherBase::~FetcherBase() = default;
22
29
31{
34 if (*fetcherPtr == this) {
36 return;
37 }
38 }
39}
40
46
58
60{
63 if (fetcher->m_fetched.load())
64 continue;
65
66 try {
68 } catch (const std::exception &error) {
70 "%s: failed to fetch '%s' from the JS thread: %s",
72 }
73 fetcher->m_fetched.store(true);
74 }
75}
76
77}
78
79void qOhosEnableMemoizingJsThreadFetchers(QOhosJsState &jsState)
80{
81 details_qohosmemoizingjsthreadfetcher_p_h::FetcherBase::enableFetching(jsState);
82}
83
84QT_END_NAMESPACE
Combined button and popup list for selecting options.
void qOhosEnableMemoizingJsThreadFetchers(QOhosJsState &jsState)