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

Functions

 Q_GLOBAL_STATIC (emscripten::ProxyingQueue, proxyingQueue)
void runOnMainThread (std::function< void(void)> fn)
void runAsync (std::function< void(void)> fn)
void runOnMainThreadAsync (std::function< void(void)> fn)
template<class T>
runTaskOnMainThread (std::function< T()> task)

Function Documentation

◆ Q_GLOBAL_STATIC()

qwasmglobal::Q_GLOBAL_STATIC ( emscripten::ProxyingQueue ,
proxyingQueue  )

◆ runAsync()

void qwasmglobal::runAsync ( std::function< void(void)> fn)

Definition at line 34 of file qwasmglobal.cpp.

Referenced by QWasmSocket::socketClose(), QWasmSocket::socketError(), QWasmSocket::socketMessage(), and QWasmSocket::socketOpen().

Here is the caller graph for this function:

◆ runOnMainThread()

void qwasmglobal::runOnMainThread ( std::function< void(void)> fn)

Definition at line 24 of file qwasmglobal.cpp.

Referenced by QWasmSocket::registerSocketNotifier(), and QWasmSocket::unregisterSocketNotifier().

Here is the caller graph for this function:

◆ runOnMainThreadAsync()

void qwasmglobal::runOnMainThreadAsync ( std::function< void(void)> fn)

Definition at line 42 of file qwasmglobal.cpp.

◆ runTaskOnMainThread()

template<class T>
T qwasmglobal::runTaskOnMainThread ( std::function< T()> task)

Definition at line 56 of file qwasmglobal_p.h.