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
QOhosJsThreadGateway Namespace Reference

Functions

Q_CORE_EXPORT void invoke (std::function< void(QOhosJsState &)> task)
Q_CORE_EXPORT void invokeAndWaitForContinue (std::function< void(QOhosJsState &, QOhosTaskPromise<>)> &&task, std::string callerContextName={})
Q_CORE_EXPORT void runAndWait (const std::function< void(QOhosJsState &)> &task, std::string callerContextName={})
template<typename Func>
auto eval (Func &&func, std::string callerContextName={}) -> decltype(func(std::declval< QOhosJsState & >()))
template<typename T>
evalWithPromise (std::function< void(QOhosJsState &, QOhosTaskPromise< T >)> evalFunc, std::string callerContextName={})
template<typename T>
evalWithConsumer (std::function< void(QOhosJsState &, std::function< void(T)>)> evalFunc)

Function Documentation

◆ eval()

template<typename Func>
auto QOhosJsThreadGateway::eval ( Func && func,
std::string callerContextName = {} ) -> decltype(func(std::declval< QOhosJsState & >()))

Definition at line 443 of file qcore_ohos_p.h.

◆ evalWithConsumer()

template<typename T>
T QOhosJsThreadGateway::evalWithConsumer ( std::function< void(QOhosJsState &, std::function< void(T)>)> evalFunc)

Definition at line 494 of file qcore_ohos_p.h.

◆ evalWithPromise()

template<typename T>
T QOhosJsThreadGateway::evalWithPromise ( std::function< void(QOhosJsState &, QOhosTaskPromise< T >)> evalFunc,
std::string callerContextName = {} )

Definition at line 464 of file qcore_ohos_p.h.

◆ invoke()

void QOhosJsThreadGateway::invoke ( std::function< void(QOhosJsState &)> task)

Definition at line 38 of file qcore_ohos.cpp.

◆ invokeAndWaitForContinue()

void QOhosJsThreadGateway::invokeAndWaitForContinue ( std::function< void(QOhosJsState &, QOhosTaskPromise<>)> && task,
std::string callerContextName = {} )

Definition at line 43 of file qcore_ohos.cpp.

◆ runAndWait()

void QOhosJsThreadGateway::runAndWait ( const std::function< void(QOhosJsState &)> & task,
std::string callerContextName = {} )

Definition at line 51 of file qcore_ohos.cpp.

Referenced by QtOhos::makeProxyWithJsThreadDeleter().

Here is the caller graph for this function: