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 &, std::function< void()>)> &&task)
Q_CORE_EXPORT void runAndWait (const std::function< void(QOhosJsState &)> &task)
template<typename Func>
auto eval (Func &&func) -> decltype(func(std::declval< QOhosJsState & >()))
template<typename T>
evalWithConsumer (std::function< void(QOhosJsState &, std::function< void(T)>)> evalFunc)

Function Documentation

◆ eval()

template<typename Func>
auto QOhosJsThreadGateway::eval ( Func && func) -> decltype(func(std::declval< QOhosJsState & >()))

Definition at line 390 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 409 of file qcore_ohos_p.h.

◆ invoke()

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

Definition at line 36 of file qcore_ohos.cpp.

◆ invokeAndWaitForContinue()

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

Definition at line 41 of file qcore_ohos.cpp.

◆ runAndWait()

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

Definition at line 47 of file qcore_ohos.cpp.

Referenced by QtOhos::makeProxyWithJsThreadDeleter().

Here is the caller graph for this function: