![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtQml More...
#include <qqmlthread_p.h>
Public Member Functions | |
| QQmlThread () | |
| virtual | ~QQmlThread () |
| void | lock () |
| void | unlock () |
| void | wakeOne () |
| void | wait () |
| bool | isThisThread () const |
| bool | isParentThread () const |
| template<typename Method, typename ... Args> | |
| void | callMethodInThread (Method &&method, Args &&...args) |
| template<typename Method, typename ... Args> | |
| void | callMethodInMain (Method &&method, Args &&...args) |
| template<typename Method, typename ... Args> | |
| void | postMethodToThread (Method &&method, Args &&...args) |
| template<typename Method, typename ... Args> | |
| void | postMethodToMain (Method &&method, Args &&...args) |
| void | waitForNextMessage () |
| void | discardMessages () |
| void | startup () |
| void | shutdown () |
Protected Member Functions | |
| QThread * | thread () const |
| QObject * | threadObject () const |
Friends | |
| class | QQmlThreadPrivate |
\inmodule QtQml
Definition at line 29 of file qqmlthread_p.h.
| QQmlThread::QQmlThread | ( | ) |
Definition at line 166 of file qqmlthread_impl.cpp.
References QQmlThreadPrivate::QQmlThreadPrivate().
|
virtual |
Definition at line 171 of file qqmlthread_impl.cpp.
| void QQmlThread::callMethodInMain | ( | Method && | method, |
| Args &&... | args ) |
Definition at line 116 of file qqmlthread_p.h.
| void QQmlThread::callMethodInThread | ( | Method && | method, |
| Args &&... | args ) |
Definition at line 123 of file qqmlthread_p.h.
| void QQmlThread::discardMessages | ( | ) |
Clear all pending events, for either thread.
Definition at line 384 of file qqmlthread_impl.cpp.
References isThisThread().
| bool QQmlThread::isParentThread | ( | ) | const |
Definition at line 233 of file qqmlthread_impl.cpp.
| bool QQmlThread::isThisThread | ( | ) | const |
Definition at line 228 of file qqmlthread_impl.cpp.
Referenced by discardMessages(), QQmlThreadPrivate::triggerMainEvent(), QQmlThreadPrivate::triggerThreadEvent(), and waitForNextMessage().
| void QQmlThread::lock | ( | ) |
Definition at line 208 of file qqmlthread_impl.cpp.
Referenced by waitForNextMessage().
| void QQmlThread::postMethodToMain | ( | Method && | method, |
| Args &&... | args ) |
Definition at line 137 of file qqmlthread_p.h.
| void QQmlThread::postMethodToThread | ( | Method && | method, |
| Args &&... | args ) |
Definition at line 130 of file qqmlthread_p.h.
| void QQmlThread::shutdown | ( | ) |
Definition at line 187 of file qqmlthread_impl.cpp.
| void QQmlThread::startup | ( | ) |
Starts the actual worker thread.
Definition at line 180 of file qqmlthread_impl.cpp.
|
protected |
Definition at line 239 of file qqmlthread_impl.cpp.
|
protected |
An object living in the QML thread, in case you want to parent other objects to it.
Definition at line 249 of file qqmlthread_impl.cpp.
| void QQmlThread::unlock | ( | ) |
Definition at line 213 of file qqmlthread_impl.cpp.
Referenced by waitForNextMessage().
| void QQmlThread::wait | ( | ) |
Definition at line 223 of file qqmlthread_impl.cpp.
| void QQmlThread::waitForNextMessage | ( | ) |
A call to this method will either:
Definition at line 353 of file qqmlthread_impl.cpp.
References isThisThread(), lock(), unlock(), and wakeOne().
| void QQmlThread::wakeOne | ( | ) |
Definition at line 218 of file qqmlthread_impl.cpp.
Referenced by waitForNextMessage().
|
friend |
Definition at line 72 of file qqmlthread_p.h.