![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qthreadpool_p.h>
Classes | |
| struct | QueuePage |
Static Public Member Functions | |
| static void | destroyGlobalThreadPool () |
| Static Public Member Functions inherited from QObjectPrivate | |
| static bool | removeConnection (Connection *cc) |
| static QObjectPrivate * | get (QObject *o) |
| static const QObjectPrivate * | get (const QObject *o) |
| static void | deleteInOwnThread (QObject *objectobject) |
| template<typename Func1, typename Func2> | |
| static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType typetype=Qt::AutoConnection) |
| template<typename Func1, typename Func2> | |
| static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
| static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int typetype, const int *typestypes, const QMetaObject *senderMetaObject) |
| static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType typetype) |
| static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType typetype) |
| static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
| static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Friends | |
| class | QThreadPoolThread |
Additional Inherited Members | |
| Public Types inherited from QObjectPrivate | |
| typedef void(*) | StaticMetaCallFunction(QObject *, QMetaObject::Call, int, void **) |
| using | ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData> |
Definition at line 33 of file qthreadpool_p.h.
| QThreadPoolPrivate::QThreadPoolPrivate | ( | ) |
Definition at line 180 of file qthreadpool.cpp.
| int QThreadPoolPrivate::activeThreadCount | ( | ) | const |
Definition at line 258 of file qthreadpool.cpp.
Referenced by areAllThreadsActive(), and tooManyThreadsActive().
| bool QThreadPoolPrivate::areAllThreadsActive | ( | ) | const |
Definition at line 283 of file qthreadpool.cpp.
References activeThreadCount(), maxThreadCount(), and reservedThreads.
Referenced by tryStart().
| void QThreadPoolPrivate::clear | ( | ) |
Definition at line 362 of file qthreadpool.cpp.
|
static |
Definition at line 183 of file qthreadpool.cpp.
Definition at line 245 of file qthreadpool.cpp.
References comparePriority().
|
inline |
Definition at line 126 of file qthreadpool_p.h.
Referenced by areAllThreadsActive(), and tooManyThreadsActive().
| void QThreadPoolPrivate::reset | ( | ) |
Helper function only to be called from waitForDone()
Deletes all current threads.
Definition at line 321 of file qthreadpool.cpp.
Referenced by waitForDone().
Definition at line 298 of file qthreadpool.cpp.
References activeThreads.
Searches for runnable in the queue, removes it from the queue and runs it if found. This function does not return until the runnable has completed.
Definition at line 423 of file qthreadpool.cpp.
| bool QThreadPoolPrivate::tooManyThreadsActive | ( | ) | const |
Definition at line 289 of file qthreadpool.cpp.
References activeThreadCount(), maxThreadCount(), and reservedThreads.
Referenced by QThreadPoolThread::run().
| bool QThreadPoolPrivate::tryStart | ( | QRunnable * | task | ) |
Definition at line 198 of file qthreadpool.cpp.
References activeThreads, and areAllThreadsActive().
| void QThreadPoolPrivate::tryToStartMoreThreads | ( | ) |
Definition at line 266 of file qthreadpool.cpp.
References QThreadPoolPrivate::QueuePage::isFinished().
| bool QThreadPoolPrivate::waitForDone | ( | const QDeadlineTimer & | timer | ) |
Helper function only to be called from the public waitForDone()
Definition at line 346 of file qthreadpool.cpp.
References reset().
|
friend |
Definition at line 36 of file qthreadpool_p.h.
| int QThreadPoolPrivate::activeThreads = 0 |
Definition at line 146 of file qthreadpool_p.h.
Referenced by QThreadPoolThread::registerThreadInactive(), QThreadPoolThread::run(), startThread(), and tryStart().
| QSet<QThreadPoolThread *> QThreadPoolPrivate::allThreads |
Definition at line 136 of file qthreadpool_p.h.
| QQueue<QThreadPoolThread *> QThreadPoolPrivate::expiredThreads |
Definition at line 138 of file qthreadpool_p.h.
| std::chrono::duration<int, std::milli> QThreadPoolPrivate::expiryTimeout = std::chrono::seconds(30) |
Definition at line 143 of file qthreadpool_p.h.
|
mutable |
Definition at line 135 of file qthreadpool_p.h.
| QWaitCondition QThreadPoolPrivate::noActiveThreads |
Definition at line 140 of file qthreadpool_p.h.
| QString QThreadPoolPrivate::objectName |
Definition at line 141 of file qthreadpool_p.h.
Definition at line 139 of file qthreadpool_p.h.
| int QThreadPoolPrivate::requestedMaxThreadCount = QThread::idealThreadCount() |
Definition at line 144 of file qthreadpool_p.h.
| int QThreadPoolPrivate::reservedThreads = 0 |
Definition at line 145 of file qthreadpool_p.h.
Referenced by areAllThreadsActive(), and tooManyThreadsActive().
| QThread::QualityOfService QThreadPoolPrivate::serviceLevel = QThread::QualityOfService::Auto |
Definition at line 149 of file qthreadpool_p.h.
| uint QThreadPoolPrivate::stackSize = 0 |
Definition at line 147 of file qthreadpool_p.h.
| QThread::Priority QThreadPoolPrivate::threadPriority = QThread::InheritPriority |
Definition at line 148 of file qthreadpool_p.h.
| QQueue<QThreadPoolThread *> QThreadPoolPrivate::waitingThreads |
Definition at line 137 of file qthreadpool_p.h.