| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | namespace { namespace Q_QGS_theInstance { typedef QThreadPool Type; QBasicAtomicInt guard = { QtGlobalStatic::Uninitialized }; __attribute__((visibility("hidden"))) inline Type *innerFunction() { struct HolderBase { ~HolderBase() noexcept { if (guard.load() == QtGlobalStatic::Initialized| TRUE | evaluated 1166 times by 419 testsEvaluated by:- tst_compiler - unknown status
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- tst_modeltest - unknown status
- tst_networkselftest - unknown status
- tst_platformsocketengine - unknown status
- tst_q_func_info - unknown status
- tst_qabstractanimation - unknown status
- tst_qabstractbutton - unknown status
- tst_qabstractitemmodel - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qabstractprintdialog - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qabstractscrollarea - unknown status
- tst_qabstractslider - unknown status
- tst_qabstractsocket - unknown status
- tst_qabstractspinbox - unknown status
- tst_qabstracttextdocumentlayout - unknown status
- tst_qaccessibility - unknown status
- tst_qaction - unknown status
- tst_qactiongroup - unknown status
- tst_qanimationgroup - unknown status
- tst_qapplication - unknown status
- ...
| | FALSE | never evaluated |
) guard.store(QtGlobalStatic::Destroyed);executed 1166 times by 419 tests: guard.store(QtGlobalStatic::Destroyed);Executed by:- tst_compiler - unknown status
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- tst_modeltest - unknown status
- tst_networkselftest - unknown status
- tst_platformsocketengine - unknown status
- tst_q_func_info - unknown status
- tst_qabstractanimation - unknown status
- tst_qabstractbutton - unknown status
- tst_qabstractitemmodel - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qabstractprintdialog - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qabstractscrollarea - unknown status
- tst_qabstractslider - unknown status
- tst_qabstractsocket - unknown status
- tst_qabstractspinbox - unknown status
- tst_qabstracttextdocumentlayout - unknown status
- tst_qaccessibility - unknown status
- tst_qaction - unknown status
- tst_qactiongroup - unknown status
- tst_qanimationgroup - unknown status
- tst_qapplication - unknown status
- ...
}executed 1166 times by 419 tests: end of blockExecuted by:- tst_compiler - unknown status
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- tst_modeltest - unknown status
- tst_networkselftest - unknown status
- tst_platformsocketengine - unknown status
- tst_q_func_info - unknown status
- tst_qabstractanimation - unknown status
- tst_qabstractbutton - unknown status
- tst_qabstractitemmodel - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qabstractprintdialog - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qabstractscrollarea - unknown status
- tst_qabstractslider - unknown status
- tst_qabstractsocket - unknown status
- tst_qabstractspinbox - unknown status
- tst_qabstracttextdocumentlayout - unknown status
- tst_qaccessibility - unknown status
- tst_qaction - unknown status
- tst_qactiongroup - unknown status
- tst_qanimationgroup - unknown status
- tst_qapplication - unknown status
- ...
}; static struct Holder : public HolderBase { Type value; Holder() noexcept(noexcept(Type ())) : value () { guard.store(QtGlobalStatic::Initialized); } } holder; returnexecuted 1524523 times by 433 tests: return &holder.value;Executed by:- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDebug
- tst_QDnsLookup_Appless
- tst_QFuture
- tst_QFutureWatcher
- tst_QGlobal
- tst_QGuiApplication
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkConfigurationManager
- tst_QSql
- tst_QTextCodec
- tst_QThreadPool
- tst_QUrl
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
- tst_compiler - unknown status
- ...
&holder.value;executed 1524523 times by 433 tests: return &holder.value;Executed by:- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDebug
- tst_QDnsLookup_Appless
- tst_QFuture
- tst_QFutureWatcher
- tst_QGlobal
- tst_QGuiApplication
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkConfigurationManager
- tst_QSql
- tst_QTextCodec
- tst_QThreadPool
- tst_QUrl
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
- tst_compiler - unknown status
- ...
} } } static QGlobalStatic<QThreadPool, Q_QGS_theInstance::innerFunction, Q_QGS_theInstance::guard> theInstance; | 0-1524523 |
| 9 | | - |
| 10 | | - |
| 11 | | - |
| 12 | | - |
| 13 | class QThreadPoolThread : public QThread | - |
| 14 | { | - |
| 15 | public: | - |
| 16 | QThreadPoolThread(QThreadPoolPrivate *manager); | - |
| 17 | void run() override; | - |
| 18 | void registerThreadInactive(); | - |
| 19 | | - |
| 20 | QWaitCondition runnableReady; | - |
| 21 | QThreadPoolPrivate *manager; | - |
| 22 | QRunnable *runnable; | - |
| 23 | }; | - |
| 24 | QThreadPoolThread::QThreadPoolThread(QThreadPoolPrivate *manager) | - |
| 25 | :manager(manager), runnable(0) | - |
| 26 | { }executed 1183 times by 34 tests: end of blockExecuted by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
| 1183 |
| 27 | | - |
| 28 | | - |
| 29 | | - |
| 30 | | - |
| 31 | void QThreadPoolThread::run() | - |
| 32 | { | - |
| 33 | QMutexLocker locker(&manager->mutex); | - |
| 34 | for(;;) { | - |
| 35 | QRunnable *r = runnable; | - |
| 36 | runnable = 0; | - |
| 37 | | - |
| 38 | do { | - |
| 39 | if (r| TRUE | evaluated 2526892 times by 34 testsEvaluated by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
| | FALSE | evaluated 2263984 times by 16 testsEvaluated by:- tst_QDnsLookup
- tst_QFtp
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QLockFile
- tst_QNetworkReply
- tst_QObject
- tst_QSslSocket
- tst_QThreadPool
- tst_QUdpSocket
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
- tst_Spdy
|
) { | 2263984-2526892 |
| 40 | const bool autoDelete = r->autoDelete(); | - |
| 41 | | - |
| 42 | | - |
| 43 | | - |
| 44 | locker.unlock(); | - |
| 45 | | - |
| 46 | try { | - |
| 47 | | - |
| 48 | r->run(); | - |
| 49 | | - |
| 50 | }executed 2526892 times by 37 tests: end of blockExecuted by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
catch (...) { | 2526892 |
| 51 | QMessageLogger(__FILE__, 102, __PRETTY_FUNCTION__).warning("Qt Concurrent has caught an exception thrown from a worker thread.\n" | - |
| 52 | "This is not supported, exceptions thrown in worker threads must be\n" | - |
| 53 | "caught before control returns to Qt Concurrent."); | - |
| 54 | registerThreadInactive(); | - |
| 55 | throw; never executed: throw; | 0 |
| 56 | } | - |
| 57 | | - |
| 58 | locker.relock(); | - |
| 59 | | - |
| 60 | if (autoDelete| TRUE | evaluated 1180309 times by 32 testsEvaluated by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
| | FALSE | evaluated 1346583 times by 7 testsEvaluated by:- tst_QFutureWatcher
- tst_QThreadPool
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentThreadEngine
- tst_qtconcurrentiteratekernel - unknown status
|
&& !--r->ref| TRUE | evaluated 1180309 times by 32 testsEvaluated by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
| | FALSE | never evaluated |
) | 0-1346583 |
| 61 | delete r;executed 1180309 times by 32 tests: delete r;Executed by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
| 1180309 |
| 62 | }executed 2526892 times by 37 tests: end of blockExecuted by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
| 2526892 |
| 63 | | - |
| 64 | | - |
| 65 | if (manager->tooManyThreadsActive()| TRUE | evaluated 5 times by 2 testsEvaluated by:- tst_QThreadPool
- tst_QtConcurrentRun
| | FALSE | evaluated 4790871 times by 37 testsEvaluated by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
|
) | 5-4790871 |
| 66 | break;executed 5 times by 2 tests: break;Executed by:- tst_QThreadPool
- tst_QtConcurrentRun
| 5 |
| 67 | | - |
| 68 | r = !manager->queue.isEmpty()| TRUE | evaluated 2525694 times by 18 testsEvaluated by:- tst_QDnsLookup
- tst_QFtp
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QLockFile
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QSslSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QUdpSocket
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
- tst_Spdy
| | FALSE | evaluated 2265177 times by 37 testsEvaluated by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
|
? manager->queue.takeFirst().first : 0; | 2265177-2525694 |
| 69 | }executed 4790871 times by 37 tests: end of blockExecuted by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
while (r != 0| TRUE | evaluated 2525694 times by 18 testsEvaluated by:- tst_QDnsLookup
- tst_QFtp
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QLockFile
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QSslSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QUdpSocket
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
- tst_Spdy
| | FALSE | evaluated 2265177 times by 37 testsEvaluated by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
|
); | 2265177-4790871 |
| 70 | | - |
| 71 | if (manager->isExiting| TRUE | never evaluated | | FALSE | evaluated 2265182 times by 37 testsEvaluated by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
|
) { | 0-2265182 |
| 72 | registerThreadInactive(); | - |
| 73 | break; never executed: break; | 0 |
| 74 | } | - |
| 75 | | - |
| 76 | | - |
| 77 | bool expired = manager->tooManyThreadsActive(); | - |
| 78 | if (!expired| TRUE | evaluated 2265177 times by 37 testsEvaluated by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
| | FALSE | evaluated 5 times by 2 testsEvaluated by:- tst_QThreadPool
- tst_QtConcurrentRun
|
) { | 5-2265177 |
| 79 | manager->waitingThreads.enqueue(this); | - |
| 80 | registerThreadInactive(); | - |
| 81 | | - |
| 82 | runnableReady.wait(locker.mutex(), manager->expiryTimeout); | - |
| 83 | ++manager->activeThreads; | - |
| 84 | if (manager->waitingThreads.removeOne(this)| TRUE | evaluated 1192 times by 38 testsEvaluated by:- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QHostInfo
- tst_QNetworkReply
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentRun
- tst_lancelot - unknown status
- tst_qdebug - unknown status
- tst_qdnslookup - unknown status
- tst_qfuturewatcher - unknown status
- tst_qhostinfo - unknown status
- tst_qhttpnetworkconnection - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qlockfile - unknown status
- tst_qmimedatabase-cache - unknown status
- tst_qmimedatabase-xml - unknown status
- ...
| | FALSE | evaluated 2263984 times by 16 testsEvaluated by:- tst_QDnsLookup
- tst_QFtp
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QLockFile
- tst_QNetworkReply
- tst_QObject
- tst_QSslSocket
- tst_QThreadPool
- tst_QUdpSocket
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
- tst_Spdy
|
) | 1192-2263984 |
| 85 | expired = true;executed 1192 times by 38 tests: expired = true;Executed by:- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QHostInfo
- tst_QNetworkReply
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentRun
- tst_lancelot - unknown status
- tst_qdebug - unknown status
- tst_qdnslookup - unknown status
- tst_qfuturewatcher - unknown status
- tst_qhostinfo - unknown status
- tst_qhttpnetworkconnection - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qlockfile - unknown status
- tst_qmimedatabase-cache - unknown status
- tst_qmimedatabase-xml - unknown status
- ...
| 1192 |
| 86 | }executed 2265176 times by 48 tests: end of blockExecuted by:- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QLockFile
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QUdpSocket
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
- tst_Spdy
- ...
| 2265176 |
| 87 | if (expired| TRUE | evaluated 1197 times by 38 testsEvaluated by:- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QHostInfo
- tst_QNetworkReply
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentRun
- tst_lancelot - unknown status
- tst_qdebug - unknown status
- tst_qdnslookup - unknown status
- tst_qfuturewatcher - unknown status
- tst_qhostinfo - unknown status
- tst_qhttpnetworkconnection - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qlockfile - unknown status
- tst_qmimedatabase-cache - unknown status
- tst_qmimedatabase-xml - unknown status
- ...
| | FALSE | evaluated 2263984 times by 16 testsEvaluated by:- tst_QDnsLookup
- tst_QFtp
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QLockFile
- tst_QNetworkReply
- tst_QObject
- tst_QSslSocket
- tst_QThreadPool
- tst_QUdpSocket
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
- tst_Spdy
|
) { | 1197-2263984 |
| 88 | manager->expiredThreads.enqueue(this); | - |
| 89 | registerThreadInactive(); | - |
| 90 | break;executed 1197 times by 38 tests: break;Executed by:- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QHostInfo
- tst_QNetworkReply
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentRun
- tst_lancelot - unknown status
- tst_qdebug - unknown status
- tst_qdnslookup - unknown status
- tst_qfuturewatcher - unknown status
- tst_qhostinfo - unknown status
- tst_qhttpnetworkconnection - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qlockfile - unknown status
- tst_qmimedatabase-cache - unknown status
- tst_qmimedatabase-xml - unknown status
- ...
| 1197 |
| 91 | } | - |
| 92 | }executed 2263984 times by 16 tests: end of blockExecuted by:- tst_QDnsLookup
- tst_QFtp
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QLockFile
- tst_QNetworkReply
- tst_QObject
- tst_QSslSocket
- tst_QThreadPool
- tst_QUdpSocket
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
- tst_Spdy
| 2263984 |
| 93 | }executed 1197 times by 38 tests: end of blockExecuted by:- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QHostInfo
- tst_QNetworkReply
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentRun
- tst_lancelot - unknown status
- tst_qdebug - unknown status
- tst_qdnslookup - unknown status
- tst_qfuturewatcher - unknown status
- tst_qhostinfo - unknown status
- tst_qhttpnetworkconnection - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qlockfile - unknown status
- tst_qmimedatabase-cache - unknown status
- tst_qmimedatabase-xml - unknown status
- ...
| 1197 |
| 94 | | - |
| 95 | void QThreadPoolThread::registerThreadInactive() | - |
| 96 | { | - |
| 97 | if (--| TRUE | evaluated 2266084 times by 56 testsEvaluated by:- tst_Lancelot
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- tst_QThreadPool
- ...
| | FALSE | evaluated 290 times by 9 testsEvaluated by:- tst_QDebug
- tst_QDnsLookup
- tst_QHostInfo
- tst_QMimeDatabase
- tst_QObject
- tst_QTextCodec
- tst_QThreadPool
- tst_QUrl
- tst_QtConcurrentRun
|
manager->activeThreads == 0| TRUE | evaluated 2266084 times by 56 testsEvaluated by:- tst_Lancelot
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- tst_QThreadPool
- ...
| | FALSE | evaluated 290 times by 9 testsEvaluated by:- tst_QDebug
- tst_QDnsLookup
- tst_QHostInfo
- tst_QMimeDatabase
- tst_QObject
- tst_QTextCodec
- tst_QThreadPool
- tst_QUrl
- tst_QtConcurrentRun
|
) | 290-2266084 |
| 98 | manager->noActiveThreads.wakeAll();executed 2266084 times by 56 tests: manager->noActiveThreads.wakeAll();Executed by:- tst_Lancelot
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- tst_QThreadPool
- ...
| 2266084 |
| 99 | }executed 2266374 times by 57 tests: end of blockExecuted by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
| 2266374 |
| 100 | | - |
| 101 | | - |
| 102 | | - |
| 103 | | - |
| 104 | | - |
| 105 | QThreadPoolPrivate:: QThreadPoolPrivate() | - |
| 106 | : isExiting(false), | - |
| 107 | expiryTimeout(30000), | - |
| 108 | maxThreadCount(qAbs(QThread::idealThreadCount())), | - |
| 109 | reservedThreads(0), | - |
| 110 | activeThreads(0) | - |
| 111 | { }executed 1857 times by 444 tests: end of blockExecuted by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractNetworkCache
- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QGlobal
- tst_QGuiApplication
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkAccessManager_And_QProgressDialog
- ...
| 1857 |
| 112 | | - |
| 113 | bool QThreadPoolPrivate::tryStart(QRunnable *task) | - |
| 114 | { | - |
| 115 | if (allThreads.isEmpty()| TRUE | evaluated 958 times by 34 testsEvaluated by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
| | FALSE | evaluated 2592152 times by 22 testsEvaluated by:- tst_QDebug
- tst_QDnsLookup
- tst_QFtp
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QUdpSocket
- tst_QUrl
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
- tst_Spdy
|
) { | 958-2592152 |
| 116 | | - |
| 117 | startThread(task); | - |
| 118 | returnexecuted 958 times by 34 tests: return true;Executed by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
true;executed 958 times by 34 tests: return true;Executed by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
| 958 |
| 119 | } | - |
| 120 | | - |
| 121 | | - |
| 122 | if (activeThreadCount() >= maxThreadCount| TRUE | evaluated 327935 times by 10 testsEvaluated by:- tst_QFutureWatcher
- tst_QLockFile
- tst_QPointer
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| | FALSE | evaluated 2264217 times by 21 testsEvaluated by:- tst_QDebug
- tst_QDnsLookup
- tst_QFtp
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QObject
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QUdpSocket
- tst_QUrl
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
- tst_Spdy
|
) | 327935-2264217 |
| 123 | returnexecuted 327935 times by 10 tests: return false;Executed by:- tst_QFutureWatcher
- tst_QLockFile
- tst_QPointer
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
false;executed 327935 times by 10 tests: return false;Executed by:- tst_QFutureWatcher
- tst_QLockFile
- tst_QPointer
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| 327935 |
| 124 | | - |
| 125 | if (waitingThreads.count() > 0| TRUE | evaluated 2263977 times by 16 testsEvaluated by:- tst_QDnsLookup
- tst_QFtp
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QLockFile
- tst_QNetworkReply
- tst_QObject
- tst_QSslSocket
- tst_QThreadPool
- tst_QUdpSocket
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
- tst_Spdy
| | FALSE | evaluated 240 times by 12 testsEvaluated by:- tst_QDebug
- tst_QDnsLookup
- tst_QFtp
- tst_QHostInfo
- tst_QMimeDatabase
- tst_QNetworkReply
- tst_QObject
- tst_QSocks5SocketEngine
- tst_QTextCodec
- tst_QThreadPool
- tst_QUrl
- tst_QtConcurrentRun
|
) { | 240-2263977 |
| 126 | | - |
| 127 | enqueueTask(task); | - |
| 128 | waitingThreads.takeFirst()->runnableReady.wakeOne(); | - |
| 129 | returnexecuted 2263977 times by 16 tests: return true;Executed by:- tst_QDnsLookup
- tst_QFtp
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QLockFile
- tst_QNetworkReply
- tst_QObject
- tst_QSslSocket
- tst_QThreadPool
- tst_QUdpSocket
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
- tst_Spdy
true;executed 2263977 times by 16 tests: return true;Executed by:- tst_QDnsLookup
- tst_QFtp
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QLockFile
- tst_QNetworkReply
- tst_QObject
- tst_QSslSocket
- tst_QThreadPool
- tst_QUdpSocket
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
- tst_Spdy
| 2263977 |
| 130 | } | - |
| 131 | | - |
| 132 | if (!expiredThreads.isEmpty()| TRUE | evaluated 15 times by 4 testsEvaluated by:- tst_QFtp
- tst_QNetworkReply
- tst_QSocks5SocketEngine
- tst_QThreadPool
| | FALSE | evaluated 225 times by 9 testsEvaluated by:- tst_QDebug
- tst_QDnsLookup
- tst_QHostInfo
- tst_QMimeDatabase
- tst_QObject
- tst_QTextCodec
- tst_QThreadPool
- tst_QUrl
- tst_QtConcurrentRun
|
) { | 15-225 |
| 133 | | - |
| 134 | QThreadPoolThread *thread = expiredThreads.dequeue(); | - |
| 135 | ((!(thread->runnable == 0)) ? qt_assert("thread->runnable == 0",__FILE__,186) : qt_noop()); | - |
| 136 | | - |
| 137 | ++activeThreads; | - |
| 138 | | - |
| 139 | if (task->autoDelete()| TRUE | evaluated 11 times by 3 testsEvaluated by:- tst_QFtp
- tst_QNetworkReply
- tst_QSocks5SocketEngine
| | FALSE | evaluated 4 times by 1 test |
) | 4-11 |
| 140 | ++executed 11 times by 3 tests: ++task->ref;Executed by:- tst_QFtp
- tst_QNetworkReply
- tst_QSocks5SocketEngine
task->ref;executed 11 times by 3 tests: ++task->ref;Executed by:- tst_QFtp
- tst_QNetworkReply
- tst_QSocks5SocketEngine
| 11 |
| 141 | thread->runnable = task; | - |
| 142 | thread->start(); | - |
| 143 | returnexecuted 15 times by 4 tests: return true;Executed by:- tst_QFtp
- tst_QNetworkReply
- tst_QSocks5SocketEngine
- tst_QThreadPool
true;executed 15 times by 4 tests: return true;Executed by:- tst_QFtp
- tst_QNetworkReply
- tst_QSocks5SocketEngine
- tst_QThreadPool
| 15 |
| 144 | } | - |
| 145 | | - |
| 146 | | - |
| 147 | startThread(task); | - |
| 148 | returnexecuted 225 times by 9 tests: return true;Executed by:- tst_QDebug
- tst_QDnsLookup
- tst_QHostInfo
- tst_QMimeDatabase
- tst_QObject
- tst_QTextCodec
- tst_QThreadPool
- tst_QUrl
- tst_QtConcurrentRun
true;executed 225 times by 9 tests: return true;Executed by:- tst_QDebug
- tst_QDnsLookup
- tst_QHostInfo
- tst_QMimeDatabase
- tst_QObject
- tst_QTextCodec
- tst_QThreadPool
- tst_QUrl
- tst_QtConcurrentRun
| 225 |
| 149 | } | - |
| 150 | | - |
| 151 | inline bool operator<(int priority, const QPair<QRunnable *, int> &p) | - |
| 152 | { returnexecuted 1 time by 1 test: return p.second < priority; p.second < priority;executed 1 time by 1 test: return p.second < priority; } | 1 |
| 153 | inline bool operator<(const QPair<QRunnable *, int> &p, int priority) | - |
| 154 | { return never executed: return priority < p.second; priority < p.second;never executed: return priority < p.second; } | 0 |
| 155 | | - |
| 156 | void QThreadPoolPrivate::enqueueTask(QRunnable *runnable, int priority) | - |
| 157 | { | - |
| 158 | if (runnable->autoDelete()| TRUE | evaluated 1245339 times by 14 testsEvaluated by:- tst_QDnsLookup
- tst_QFtp
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QLockFile
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QSslSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QUdpSocket
- tst_QtConcurrentRun
- tst_Spdy
| | FALSE | evaluated 1346571 times by 6 testsEvaluated by:- tst_QFutureWatcher
- tst_QThreadPool
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentThreadEngine
|
) | 1245339-1346571 |
| 159 | ++executed 1245339 times by 14 tests: ++runnable->ref;Executed by:- tst_QDnsLookup
- tst_QFtp
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QLockFile
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QSslSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QUdpSocket
- tst_QtConcurrentRun
- tst_Spdy
runnable->ref;executed 1245339 times by 14 tests: ++runnable->ref;Executed by:- tst_QDnsLookup
- tst_QFtp
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QLockFile
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QSslSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QUdpSocket
- tst_QtConcurrentRun
- tst_Spdy
| 1245339 |
| 160 | | - |
| 161 | | - |
| 162 | QVector<QPair<QRunnable *, int> >::const_iterator begin = queue.constBegin(); | - |
| 163 | QVector<QPair<QRunnable *, int> >::const_iterator it = queue.constEnd(); | - |
| 164 | if (it != begin| TRUE | evaluated 325912 times by 9 testsEvaluated by:- tst_QFutureWatcher
- tst_QHostInfo
- tst_QLockFile
- tst_QPointer
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentMap
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| | FALSE | evaluated 2265998 times by 18 testsEvaluated by:- tst_QDnsLookup
- tst_QFtp
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QLockFile
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QSslSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QUdpSocket
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
- tst_Spdy
|
&& priority > (*(it - 1)).second| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 325910 times by 9 testsEvaluated by:- tst_QFutureWatcher
- tst_QHostInfo
- tst_QLockFile
- tst_QPointer
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentMap
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
|
) | 2-2265998 |
| 165 | it = std::upper_bound(begin, --it, priority);executed 2 times by 1 test: it = std::upper_bound(begin, --it, priority); | 2 |
| 166 | queue.insert(it - begin, qMakePair(runnable, priority)); | - |
| 167 | }executed 2591910 times by 18 tests: end of blockExecuted by:- tst_QDnsLookup
- tst_QFtp
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QLockFile
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QSslSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QUdpSocket
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
- tst_Spdy
| 2591910 |
| 168 | | - |
| 169 | int QThreadPoolPrivate::activeThreadCount() const | - |
| 170 | { | - |
| 171 | returnexecuted 9778525 times by 37 tests: return (allThreads.count() - expiredThreads.count() - waitingThreads.count() + reservedThreads);Executed by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
(allThreads.count()executed 9778525 times by 37 tests: return (allThreads.count() - expiredThreads.count() - waitingThreads.count() + reservedThreads);Executed by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
| 9778525 |
| 172 | - expiredThreads.count()executed 9778525 times by 37 tests: return (allThreads.count() - expiredThreads.count() - waitingThreads.count() + reservedThreads);Executed by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
| 9778525 |
| 173 | - waitingThreads.count()executed 9778525 times by 37 tests: return (allThreads.count() - expiredThreads.count() - waitingThreads.count() + reservedThreads);Executed by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
| 9778525 |
| 174 | + reservedThreads);executed 9778525 times by 37 tests: return (allThreads.count() - expiredThreads.count() - waitingThreads.count() + reservedThreads);Executed by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
| 9778525 |
| 175 | } | - |
| 176 | | - |
| 177 | void QThreadPoolPrivate::tryToStartMoreThreads() | - |
| 178 | { | - |
| 179 | | - |
| 180 | while (!queue.isEmpty()| TRUE | evaluated 11 times by 1 test | | FALSE | evaluated 49801 times by 31 testsEvaluated by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractNetworkCache
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QMimeDatabase
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QObject
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTextCodec
- ...
|
&& tryStart(queue.constFirst().first)| TRUE | evaluated 9 times by 1 test | | FALSE | evaluated 2 times by 1 test |
) | 2-49801 |
| 181 | queue.removeFirst();executed 9 times by 1 test: queue.removeFirst(); | 9 |
| 182 | }executed 49803 times by 31 tests: end of blockExecuted by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractNetworkCache
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QMimeDatabase
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QObject
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTextCodec
- ...
| 49803 |
| 183 | | - |
| 184 | bool QThreadPoolPrivate::tooManyThreadsActive() const | - |
| 185 | { | - |
| 186 | const int activeThreadCount = this->activeThreadCount(); | - |
| 187 | returnexecuted 7056058 times by 37 tests: return activeThreadCount > maxThreadCount && (activeThreadCount - reservedThreads) > 1;Executed by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
activeThreadCount > maxThreadCount && (activeThreadCount - reservedThreads) > 1;executed 7056058 times by 37 tests: return activeThreadCount > maxThreadCount && (activeThreadCount - reservedThreads) > 1;Executed by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
| 7056058 |
| 188 | } | - |
| 189 | | - |
| 190 | | - |
| 191 | | - |
| 192 | | - |
| 193 | void QThreadPoolPrivate::startThread(QRunnable *runnable) | - |
| 194 | { | - |
| 195 | QScopedPointer <QThreadPoolThread> thread(new QThreadPoolThread(this)); | - |
| 196 | thread->setObjectName(QLatin1String("Thread (pooled)")); | - |
| 197 | allThreads.insert(thread.data()); | - |
| 198 | ++activeThreads; | - |
| 199 | | - |
| 200 | if (runnable->autoDelete()| TRUE | evaluated 1165 times by 30 testsEvaluated by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
| | FALSE | evaluated 18 times by 5 testsEvaluated by:- tst_QThreadPool
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentThreadEngine
|
) | 18-1165 |
| 201 | ++executed 1165 times by 30 tests: ++runnable->ref;Executed by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
runnable->ref;executed 1165 times by 30 tests: ++runnable->ref;Executed by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
| 1165 |
| 202 | thread->runnable = runnable; | - |
| 203 | thread.take()->start(); | - |
| 204 | }executed 1183 times by 34 tests: end of blockExecuted by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
| 1183 |
| 205 | | - |
| 206 | | - |
| 207 | | - |
| 208 | | - |
| 209 | | - |
| 210 | void QThreadPoolPrivate::reset() | - |
| 211 | { | - |
| 212 | QMutexLocker locker(&mutex); | - |
| 213 | isExiting = true; | - |
| 214 | | - |
| 215 | while (!allThreads.empty()| TRUE | evaluated 957 times by 37 testsEvaluated by:- tst_QDnsLookup_Appless
- tst_QFuture
- tst_QHostInfo
- tst_QPointer
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentRun
- tst_lancelot - unknown status
- tst_qdebug - unknown status
- tst_qdnslookup - unknown status
- tst_qftp - unknown status
- tst_qfuturewatcher - unknown status
- tst_qhostinfo - unknown status
- tst_qhttpnetworkconnection - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qlockfile - unknown status
- tst_qmimedatabase-cache - unknown status
- tst_qmimedatabase-xml - unknown status
- tst_qnetworkdiskcache - unknown status
- tst_qnetworkproxyfactory - unknown status
- tst_qobject - unknown status
- ...
| | FALSE | evaluated 4780 times by 440 testsEvaluated by:- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDnsLookup_Appless
- tst_QFuture
- tst_QGlobal
- tst_QGuiApplication
- tst_QHostInfo
- tst_QNetworkConfigurationManager
- tst_QPointer
- tst_QSql
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentRun
- tst_compiler - unknown status
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- ...
|
) { | 957-4780 |
| 216 | | - |
| 217 | QSet<QThreadPoolThread *> allThreadsCopy; | - |
| 218 | allThreadsCopy.swap(allThreads); | - |
| 219 | locker.unlock(); | - |
| 220 | | - |
| 221 | for (QThreadPoolThread *thread : qAsConst(allThreadsCopy)) { | - |
| 222 | thread->runnableReady.wakeAll(); | - |
| 223 | thread->wait(); | - |
| 224 | delete thread; | - |
| 225 | }executed 1182 times by 37 tests: end of blockExecuted by:- tst_QDnsLookup_Appless
- tst_QFuture
- tst_QHostInfo
- tst_QPointer
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentRun
- tst_lancelot - unknown status
- tst_qdebug - unknown status
- tst_qdnslookup - unknown status
- tst_qftp - unknown status
- tst_qfuturewatcher - unknown status
- tst_qhostinfo - unknown status
- tst_qhttpnetworkconnection - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qlockfile - unknown status
- tst_qmimedatabase-cache - unknown status
- tst_qmimedatabase-xml - unknown status
- tst_qnetworkdiskcache - unknown status
- tst_qnetworkproxyfactory - unknown status
- tst_qobject - unknown status
- ...
| 1182 |
| 226 | | - |
| 227 | locker.relock(); | - |
| 228 | | - |
| 229 | }executed 957 times by 37 tests: end of blockExecuted by:- tst_QDnsLookup_Appless
- tst_QFuture
- tst_QHostInfo
- tst_QPointer
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentRun
- tst_lancelot - unknown status
- tst_qdebug - unknown status
- tst_qdnslookup - unknown status
- tst_qftp - unknown status
- tst_qfuturewatcher - unknown status
- tst_qhostinfo - unknown status
- tst_qhttpnetworkconnection - unknown status
- tst_qhttpsocketengine - unknown status
- tst_qlockfile - unknown status
- tst_qmimedatabase-cache - unknown status
- tst_qmimedatabase-xml - unknown status
- tst_qnetworkdiskcache - unknown status
- tst_qnetworkproxyfactory - unknown status
- tst_qobject - unknown status
- ...
| 957 |
| 230 | | - |
| 231 | waitingThreads.clear(); | - |
| 232 | expiredThreads.clear(); | - |
| 233 | | - |
| 234 | isExiting = false; | - |
| 235 | }executed 4780 times by 440 tests: end of blockExecuted by:- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDnsLookup_Appless
- tst_QFuture
- tst_QGlobal
- tst_QGuiApplication
- tst_QHostInfo
- tst_QNetworkConfigurationManager
- tst_QPointer
- tst_QSql
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentRun
- tst_compiler - unknown status
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- ...
| 4780 |
| 236 | | - |
| 237 | bool QThreadPoolPrivate::waitForDone(int msecs) | - |
| 238 | { | - |
| 239 | QMutexLocker locker(&mutex); | - |
| 240 | if (msecs < 0| TRUE | evaluated 4777 times by 440 testsEvaluated by:- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDnsLookup_Appless
- tst_QFuture
- tst_QGlobal
- tst_QGuiApplication
- tst_QHostInfo
- tst_QNetworkConfigurationManager
- tst_QPointer
- tst_QSql
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentRun
- tst_compiler - unknown status
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- ...
| | FALSE | evaluated 5 times by 2 testsEvaluated by:- tst_QFuture
- tst_QThreadPool
|
) { | 5-4777 |
| 241 | while (!(queue.isEmpty()| TRUE | evaluated 5356 times by 440 testsEvaluated by:- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDnsLookup_Appless
- tst_QFuture
- tst_QGlobal
- tst_QGuiApplication
- tst_QHostInfo
- tst_QNetworkConfigurationManager
- tst_QPointer
- tst_QSql
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentRun
- tst_compiler - unknown status
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- ...
| | FALSE | evaluated 12 times by 4 testsEvaluated by:- tst_QPointer
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentRun
|
&& activeThreads == 0| TRUE | evaluated 4777 times by 440 testsEvaluated by:- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDnsLookup_Appless
- tst_QFuture
- tst_QGlobal
- tst_QGuiApplication
- tst_QHostInfo
- tst_QNetworkConfigurationManager
- tst_QPointer
- tst_QSql
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentRun
- tst_compiler - unknown status
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- ...
| | FALSE | evaluated 579 times by 8 testsEvaluated by:- tst_QDnsLookup_Appless
- tst_QHostInfo
- tst_QSslSocket
- tst_QThreadPool
- tst_QtConcurrentRun
- tst_qdebug - unknown status
- tst_qtconcurrentiteratekernel - unknown status
- tst_qudpsocket - unknown status
|
)) | 12-5356 |
| 242 | noActiveThreads.wait(locker.mutex());executed 591 times by 10 tests: noActiveThreads.wait(locker.mutex());Executed by:- tst_QDnsLookup_Appless
- tst_QHostInfo
- tst_QPointer
- tst_QSslSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentRun
- tst_qdebug - unknown status
- tst_qtconcurrentiteratekernel - unknown status
- tst_qudpsocket - unknown status
| 591 |
| 243 | }executed 4777 times by 440 tests: end of blockExecuted by:- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDnsLookup_Appless
- tst_QFuture
- tst_QGlobal
- tst_QGuiApplication
- tst_QHostInfo
- tst_QNetworkConfigurationManager
- tst_QPointer
- tst_QSql
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentRun
- tst_compiler - unknown status
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- ...
else { | 4777 |
| 244 | QElapsedTimer timer; | - |
| 245 | timer.start(); | - |
| 246 | int t; | - |
| 247 | while (!(queue.isEmpty()| TRUE | evaluated 8 times by 2 testsEvaluated by:- tst_QFuture
- tst_QThreadPool
| | FALSE | never evaluated |
&& activeThreads == 0| TRUE | evaluated 3 times by 2 testsEvaluated by:- tst_QFuture
- tst_QThreadPool
| | FALSE | evaluated 5 times by 2 testsEvaluated by:- tst_QFuture
- tst_QThreadPool
|
) && | 0-8 |
| 248 | ((| TRUE | evaluated 3 times by 2 testsEvaluated by:- tst_QFuture
- tst_QThreadPool
| | FALSE | evaluated 2 times by 2 testsEvaluated by:- tst_QFuture
- tst_QThreadPool
|
t = msecs - timer.elapsed()) > 0)| TRUE | evaluated 3 times by 2 testsEvaluated by:- tst_QFuture
- tst_QThreadPool
| | FALSE | evaluated 2 times by 2 testsEvaluated by:- tst_QFuture
- tst_QThreadPool
|
) | 2-3 |
| 249 | noActiveThreads.wait(locker.mutex(), t);executed 3 times by 2 tests: noActiveThreads.wait(locker.mutex(), t);Executed by:- tst_QFuture
- tst_QThreadPool
| 3 |
| 250 | }executed 5 times by 2 tests: end of blockExecuted by:- tst_QFuture
- tst_QThreadPool
| 5 |
| 251 | returnexecuted 4782 times by 440 tests: return queue.isEmpty() && activeThreads == 0;Executed by:- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDnsLookup_Appless
- tst_QFuture
- tst_QGlobal
- tst_QGuiApplication
- tst_QHostInfo
- tst_QNetworkConfigurationManager
- tst_QPointer
- tst_QSql
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentRun
- tst_compiler - unknown status
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- ...
queue.isEmpty() && activeThreads == 0;executed 4782 times by 440 tests: return queue.isEmpty() && activeThreads == 0;Executed by:- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDnsLookup_Appless
- tst_QFuture
- tst_QGlobal
- tst_QGuiApplication
- tst_QHostInfo
- tst_QNetworkConfigurationManager
- tst_QPointer
- tst_QSql
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentRun
- tst_compiler - unknown status
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- ...
| 4782 |
| 252 | } | - |
| 253 | | - |
| 254 | void QThreadPoolPrivate::clear() | - |
| 255 | { | - |
| 256 | QMutexLocker locker(&mutex); | - |
| 257 | for (QVector<QPair<QRunnable *, int> >::const_iterator it = queue.constBegin(); | - |
| 258 | it != queue.constEnd()| TRUE | evaluated 11 times by 1 test | | FALSE | evaluated 1 time by 1 test |
; ++it) { | 1-11 |
| 259 | QRunnable* r = it->first; | - |
| 260 | if (r->autoDelete()| TRUE | evaluated 11 times by 1 test | | FALSE | never evaluated |
&& !--r->ref| TRUE | evaluated 11 times by 1 test | | FALSE | never evaluated |
) | 0-11 |
| 261 | delete r;executed 11 times by 1 test: delete r; | 11 |
| 262 | }executed 11 times by 1 test: end of block | 11 |
| 263 | queue.clear(); | - |
| 264 | }executed 1 time by 1 test: end of block | 1 |
| 265 | | - |
| 266 | | - |
| 267 | | - |
| 268 | | - |
| 269 | | - |
| 270 | | - |
| 271 | bool QThreadPoolPrivate::stealRunnable(QRunnable *runnable) | - |
| 272 | { | - |
| 273 | if (runnable == 0| TRUE | evaluated 65985 times by 6 testsEvaluated by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentThreadEngine
| | FALSE | evaluated 66240 times by 7 testsEvaluated by:- tst_QDebug
- tst_QFutureWatcher
- tst_QLockFile
- tst_QMimeDatabase
- tst_QThreadPool
- tst_QUrl
- tst_QtConcurrentRun
|
) | 65985-66240 |
| 274 | returnexecuted 65985 times by 6 tests: return false;Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentThreadEngine
false;executed 65985 times by 6 tests: return false;Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentThreadEngine
| 65985 |
| 275 | { | - |
| 276 | QMutexLocker locker(&mutex); | - |
| 277 | QVector<QPair<QRunnable *, int> >::iterator it = queue.begin(); | - |
| 278 | QVector<QPair<QRunnable *, int> >::iterator end = queue.end(); | - |
| 279 | | - |
| 280 | while (it != end| TRUE | evaluated 837893 times by 4 testsEvaluated by:- tst_QFutureWatcher
- tst_QLockFile
- tst_QThreadPool
- tst_QtConcurrentRun
| | FALSE | evaluated 44 times by 7 testsEvaluated by:- tst_QDebug
- tst_QFutureWatcher
- tst_QLockFile
- tst_QMimeDatabase
- tst_QThreadPool
- tst_QUrl
- tst_QtConcurrentRun
|
) { | 44-837893 |
| 281 | if (it->first == runnable| TRUE | evaluated 66196 times by 4 testsEvaluated by:- tst_QFutureWatcher
- tst_QLockFile
- tst_QThreadPool
- tst_QtConcurrentRun
| | FALSE | evaluated 771697 times by 3 testsEvaluated by:- tst_QFutureWatcher
- tst_QThreadPool
- tst_QtConcurrentRun
|
) { | 66196-771697 |
| 282 | queue.erase(it); | - |
| 283 | returnexecuted 66196 times by 4 tests: return true;Executed by:- tst_QFutureWatcher
- tst_QLockFile
- tst_QThreadPool
- tst_QtConcurrentRun
true;executed 66196 times by 4 tests: return true;Executed by:- tst_QFutureWatcher
- tst_QLockFile
- tst_QThreadPool
- tst_QtConcurrentRun
| 66196 |
| 284 | } | - |
| 285 | ++it; | - |
| 286 | }executed 771697 times by 3 tests: end of blockExecuted by:- tst_QFutureWatcher
- tst_QThreadPool
- tst_QtConcurrentRun
| 771697 |
| 287 | } | - |
| 288 | | - |
| 289 | returnexecuted 44 times by 7 tests: return false;Executed by:- tst_QDebug
- tst_QFutureWatcher
- tst_QLockFile
- tst_QMimeDatabase
- tst_QThreadPool
- tst_QUrl
- tst_QtConcurrentRun
false;executed 44 times by 7 tests: return false;Executed by:- tst_QDebug
- tst_QFutureWatcher
- tst_QLockFile
- tst_QMimeDatabase
- tst_QThreadPool
- tst_QUrl
- tst_QtConcurrentRun
| 44 |
| 290 | } | - |
| 291 | | - |
| 292 | | - |
| 293 | | - |
| 294 | | - |
| 295 | | - |
| 296 | | - |
| 297 | | - |
| 298 | void QThreadPoolPrivate::stealAndRunRunnable(QRunnable *runnable) | - |
| 299 | { | - |
| 300 | if (!stealRunnable(runnable)| TRUE | evaluated 66020 times by 11 testsEvaluated by:- tst_QDebug
- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QMimeDatabase
- tst_QUrl
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| | FALSE | evaluated 66193 times by 3 testsEvaluated by:- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentRun
|
) | 66020-66193 |
| 301 | return;executed 66020 times by 11 tests: return;Executed by:- tst_QDebug
- tst_QFuture
- tst_QFutureWatcher
- tst_QLockFile
- tst_QMimeDatabase
- tst_QUrl
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| 66020 |
| 302 | const bool autoDelete = runnable->autoDelete(); | - |
| 303 | bool del = autoDelete| TRUE | evaluated 66193 times by 3 testsEvaluated by:- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentRun
| | FALSE | never evaluated |
&& !--runnable->ref| TRUE | evaluated 66193 times by 3 testsEvaluated by:- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentRun
| | FALSE | never evaluated |
; | 0-66193 |
| 304 | | - |
| 305 | runnable->run(); | - |
| 306 | | - |
| 307 | if (del| TRUE | evaluated 66193 times by 3 testsEvaluated by:- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentRun
| | FALSE | never evaluated |
) { | 0-66193 |
| 308 | delete runnable; | - |
| 309 | }executed 66193 times by 3 tests: end of blockExecuted by:- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentRun
| 66193 |
| 310 | }executed 66193 times by 3 tests: end of blockExecuted by:- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentRun
| 66193 |
| 311 | QThreadPool::QThreadPool(QObject *parent) | - |
| 312 | : QObject(*new QThreadPoolPrivate, parent) | - |
| 313 | { }executed 1857 times by 444 tests: end of blockExecuted by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractNetworkCache
- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QGlobal
- tst_QGuiApplication
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkAccessManager_And_QProgressDialog
- ...
| 1857 |
| 314 | | - |
| 315 | | - |
| 316 | | - |
| 317 | | - |
| 318 | | - |
| 319 | QThreadPool::~QThreadPool() | - |
| 320 | { | - |
| 321 | waitForDone(); | - |
| 322 | }executed 1857 times by 423 tests: end of blockExecuted by:- tst_QFuture
- tst_QPointer
- tst_QThreadPool
- tst_QtConcurrentRun
- tst_compiler - unknown status
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- tst_modeltest - unknown status
- tst_networkselftest - unknown status
- tst_platformsocketengine - unknown status
- tst_q_func_info - unknown status
- tst_qabstractanimation - unknown status
- tst_qabstractbutton - unknown status
- tst_qabstractitemmodel - unknown status
- tst_qabstractitemview - unknown status
- tst_qabstractnetworkcache - unknown status
- tst_qabstractprintdialog - unknown status
- tst_qabstractproxymodel - unknown status
- tst_qabstractscrollarea - unknown status
- tst_qabstractslider - unknown status
- tst_qabstractsocket - unknown status
- tst_qabstractspinbox - unknown status
- tst_qabstracttextdocumentlayout - unknown status
- tst_qaccessibility - unknown status
- ...
| 1857 |
| 323 | | - |
| 324 | | - |
| 325 | | - |
| 326 | | - |
| 327 | QThreadPool *QThreadPool::globalInstance() | - |
| 328 | { | - |
| 329 | returnexecuted 1524523 times by 433 tests: return theInstance();Executed by:- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDebug
- tst_QDnsLookup_Appless
- tst_QFuture
- tst_QFutureWatcher
- tst_QGlobal
- tst_QGuiApplication
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkConfigurationManager
- tst_QSql
- tst_QTextCodec
- tst_QThreadPool
- tst_QUrl
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
- tst_compiler - unknown status
- ...
theInstance();executed 1524523 times by 433 tests: return theInstance();Executed by:- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDebug
- tst_QDnsLookup_Appless
- tst_QFuture
- tst_QFutureWatcher
- tst_QGlobal
- tst_QGuiApplication
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkConfigurationManager
- tst_QSql
- tst_QTextCodec
- tst_QThreadPool
- tst_QUrl
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
- tst_compiler - unknown status
- ...
| 1524523 |
| 330 | } | - |
| 331 | void QThreadPool::start(QRunnable *runnable, int priority) | - |
| 332 | { | - |
| 333 | if (!runnable| TRUE | never evaluated | | FALSE | evaluated 2592853 times by 34 testsEvaluated by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
|
) | 0-2592853 |
| 334 | return; never executed: return; | 0 |
| 335 | | - |
| 336 | QThreadPoolPrivate * const d = d_func(); | - |
| 337 | QMutexLocker locker(&d->mutex); | - |
| 338 | if (!d->tryStart(runnable)| TRUE | evaluated 327933 times by 10 testsEvaluated by:- tst_QFutureWatcher
- tst_QLockFile
- tst_QPointer
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| | FALSE | evaluated 2264920 times by 33 testsEvaluated by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
|
) { | 327933-2264920 |
| 339 | d->enqueueTask(runnable, priority); | - |
| 340 | | - |
| 341 | if (!d->waitingThreads.isEmpty()| TRUE | evaluated 7 times by 2 testsEvaluated by:- tst_QThreadPool
- tst_QtConcurrentRun
| | FALSE | evaluated 327926 times by 10 testsEvaluated by:- tst_QFutureWatcher
- tst_QLockFile
- tst_QPointer
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
|
) | 7-327926 |
| 342 | d->waitingThreads.takeFirst()->runnableReady.wakeOne();executed 7 times by 2 tests: d->waitingThreads.takeFirst()->runnableReady.wakeOne();Executed by:- tst_QThreadPool
- tst_QtConcurrentRun
| 7 |
| 343 | }executed 327933 times by 10 tests: end of blockExecuted by:- tst_QFutureWatcher
- tst_QLockFile
- tst_QPointer
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
| 327933 |
| 344 | }executed 2592853 times by 34 tests: end of blockExecuted by:- tst_Lancelot
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QFuture
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QLockFile
- tst_QMimeDatabase
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QPointer
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QTextCodec
- ...
| 2592853 |
| 345 | bool QThreadPool::tryStart(QRunnable *runnable) | - |
| 346 | { | - |
| 347 | if (!runnable| TRUE | never evaluated | | FALSE | evaluated 80494 times by 6 testsEvaluated by:- tst_QFutureWatcher
- tst_QThreadPool
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentThreadEngine
|
) | 0-80494 |
| 348 | return never executed: return false; false;never executed: return false; | 0 |
| 349 | | - |
| 350 | QThreadPoolPrivate * const d = d_func(); | - |
| 351 | | - |
| 352 | QMutexLocker locker(&d->mutex); | - |
| 353 | | - |
| 354 | if (d->allThreads.isEmpty() == false| TRUE | evaluated 80490 times by 6 testsEvaluated by:- tst_QFutureWatcher
- tst_QThreadPool
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentThreadEngine
| | FALSE | evaluated 4 times by 3 testsEvaluated by:- tst_QThreadPool
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentThreadEngine
|
&& d->activeThreadCount() >= d->maxThreadCount| TRUE | evaluated 80248 times by 6 testsEvaluated by:- tst_QFutureWatcher
- tst_QThreadPool
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentThreadEngine
| | FALSE | evaluated 242 times by 5 testsEvaluated by:- tst_QThreadPool
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentThreadEngine
|
) | 4-80490 |
| 355 | returnexecuted 80248 times by 6 tests: return false;Executed by:- tst_QFutureWatcher
- tst_QThreadPool
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentThreadEngine
false;executed 80248 times by 6 tests: return false;Executed by:- tst_QFutureWatcher
- tst_QThreadPool
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentThreadEngine
| 80248 |
| 356 | | - |
| 357 | returnexecuted 246 times by 5 tests: return d->tryStart(runnable);Executed by:- tst_QThreadPool
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentThreadEngine
d->tryStart(runnable);executed 246 times by 5 tests: return d->tryStart(runnable);Executed by:- tst_QThreadPool
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentThreadEngine
| 246 |
| 358 | } | - |
| 359 | int QThreadPool::expiryTimeout() const | - |
| 360 | { | - |
| 361 | const QThreadPoolPrivate * const d = d_func(); | - |
| 362 | returnexecuted 3 times by 1 test: return d->expiryTimeout; d->expiryTimeout;executed 3 times by 1 test: return d->expiryTimeout; | 3 |
| 363 | } | - |
| 364 | | - |
| 365 | void QThreadPool::setExpiryTimeout(int expiryTimeout) | - |
| 366 | { | - |
| 367 | QThreadPoolPrivate * const d = d_func(); | - |
| 368 | if (d->expiryTimeout == expiryTimeout| TRUE | never evaluated | | FALSE | evaluated 3 times by 1 test |
) | 0-3 |
| 369 | return; never executed: return; | 0 |
| 370 | d->expiryTimeout = expiryTimeout; | - |
| 371 | }executed 3 times by 1 test: end of block | 3 |
| 372 | int QThreadPool::maxThreadCount() const | - |
| 373 | { | - |
| 374 | const QThreadPoolPrivate * const d = d_func(); | - |
| 375 | returnexecuted 25768 times by 25 tests: return d->maxThreadCount;Executed by:- tst_Lancelot
- tst_QFtp
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QThreadPool
- tst_QUdpSocket
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentThreadEngine
- tst_Spdy
- tst_qudpsocket - unknown status
d->maxThreadCount;executed 25768 times by 25 tests: return d->maxThreadCount;Executed by:- tst_Lancelot
- tst_QFtp
- tst_QFutureWatcher
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QNetworkDiskCache
- tst_QNetworkProxyFactory
- tst_QNetworkReply
- tst_QObject
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTcpSocket
- tst_QThreadPool
- tst_QUdpSocket
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentThreadEngine
- tst_Spdy
- tst_qudpsocket - unknown status
| 25768 |
| 376 | } | - |
| 377 | | - |
| 378 | void QThreadPool::setMaxThreadCount(int maxThreadCount) | - |
| 379 | { | - |
| 380 | QThreadPoolPrivate * const d = d_func(); | - |
| 381 | QMutexLocker locker(&d->mutex); | - |
| 382 | | - |
| 383 | if (maxThreadCount == d->maxThreadCount| TRUE | evaluated 20 times by 2 testsEvaluated by:- tst_QThreadPool
- tst_QtConcurrentRun
| | FALSE | evaluated 138 times by 31 testsEvaluated by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractNetworkCache
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QMimeDatabase
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QObject
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTextCodec
- ...
|
) | 20-138 |
| 384 | return;executed 20 times by 2 tests: return;Executed by:- tst_QThreadPool
- tst_QtConcurrentRun
| 20 |
| 385 | | - |
| 386 | d->maxThreadCount = maxThreadCount; | - |
| 387 | d->tryToStartMoreThreads(); | - |
| 388 | }executed 138 times by 31 tests: end of blockExecuted by:- tst_Lancelot
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractNetworkCache
- tst_QDebug
- tst_QDnsLookup
- tst_QDnsLookup_Appless
- tst_QFtp
- tst_QHostInfo
- tst_QHttpNetworkConnection
- tst_QHttpSocketEngine
- tst_QIODevice
- tst_QMimeDatabase
- tst_QNetworkAccessManager_And_QProgressDialog
- tst_QNetworkDiskCache
- tst_QNetworkInterface
- tst_QNetworkProxyFactory
- tst_QObject
- tst_QProcess
- tst_QSocks5SocketEngine
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpServer
- tst_QTextCodec
- ...
| 138 |
| 389 | int QThreadPool::activeThreadCount() const | - |
| 390 | { | - |
| 391 | const QThreadPoolPrivate * const d = d_func(); | - |
| 392 | QMutexLocker locker(&d->mutex); | - |
| 393 | returnexecuted 49825 times by 1 test: return d->activeThreadCount(); d->activeThreadCount();executed 49825 times by 1 test: return d->activeThreadCount(); | 49825 |
| 394 | } | - |
| 395 | void QThreadPool::reserveThread() | - |
| 396 | { | - |
| 397 | QThreadPoolPrivate * const d = d_func(); | - |
| 398 | QMutexLocker locker(&d->mutex); | - |
| 399 | ++d->reservedThreads; | - |
| 400 | }executed 49665 times by 1 test: end of block | 49665 |
| 401 | void QThreadPool::releaseThread() | - |
| 402 | { | - |
| 403 | QThreadPoolPrivate * const d = d_func(); | - |
| 404 | QMutexLocker locker(&d->mutex); | - |
| 405 | --d->reservedThreads; | - |
| 406 | d->tryToStartMoreThreads(); | - |
| 407 | }executed 49665 times by 1 test: end of block | 49665 |
| 408 | | - |
| 409 | | - |
| 410 | | - |
| 411 | | - |
| 412 | | - |
| 413 | | - |
| 414 | | - |
| 415 | bool QThreadPool::waitForDone(int msecs) | - |
| 416 | { | - |
| 417 | QThreadPoolPrivate * const d = d_func(); | - |
| 418 | bool rc = d->waitForDone(msecs); | - |
| 419 | if (rc| TRUE | evaluated 4780 times by 440 testsEvaluated by:- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDnsLookup_Appless
- tst_QFuture
- tst_QGlobal
- tst_QGuiApplication
- tst_QHostInfo
- tst_QNetworkConfigurationManager
- tst_QPointer
- tst_QSql
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentRun
- tst_compiler - unknown status
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- ...
| | FALSE | evaluated 2 times by 2 testsEvaluated by:- tst_QFuture
- tst_QThreadPool
|
) | 2-4780 |
| 420 | d->reset();executed 4780 times by 440 tests: d->reset();Executed by:- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDnsLookup_Appless
- tst_QFuture
- tst_QGlobal
- tst_QGuiApplication
- tst_QHostInfo
- tst_QNetworkConfigurationManager
- tst_QPointer
- tst_QSql
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentRun
- tst_compiler - unknown status
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- ...
| 4780 |
| 421 | returnexecuted 4782 times by 440 tests: return rc;Executed by:- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDnsLookup_Appless
- tst_QFuture
- tst_QGlobal
- tst_QGuiApplication
- tst_QHostInfo
- tst_QNetworkConfigurationManager
- tst_QPointer
- tst_QSql
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentRun
- tst_compiler - unknown status
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- ...
rc;executed 4782 times by 440 tests: return rc;Executed by:- tst_QApplication
- tst_QCommandLineParser
- tst_QCoreApplication
- tst_QDBusConnectionNoBus
- tst_QDBusConnectionNoLibDBus1
- tst_QDBusConnection_Delayed
- tst_QDnsLookup_Appless
- tst_QFuture
- tst_QGlobal
- tst_QGuiApplication
- tst_QHostInfo
- tst_QNetworkConfigurationManager
- tst_QPointer
- tst_QSql
- tst_QSslSocket
- tst_QSslSocket_onDemandCertificates_member
- tst_QSslSocket_onDemandCertificates_static
- tst_QTcpSocket
- tst_QTextCodec
- tst_QThreadPool
- tst_QtConcurrentRun
- tst_compiler - unknown status
- tst_gestures - unknown status
- tst_lancelot - unknown status
- tst_languagechange - unknown status
- ...
| 4782 |
| 422 | } | - |
| 423 | void QThreadPool::clear() | - |
| 424 | { | - |
| 425 | QThreadPoolPrivate * const d = d_func(); | - |
| 426 | d->clear(); | - |
| 427 | }executed 1 time by 1 test: end of block | 1 |
| 428 | void QThreadPool::cancel(QRunnable *runnable) | - |
| 429 | { | - |
| 430 | QThreadPoolPrivate * const d = d_func(); | - |
| 431 | if (!d->stealRunnable(runnable)| TRUE | evaluated 9 times by 1 test | | FALSE | evaluated 3 times by 1 test |
) | 3-9 |
| 432 | return;executed 9 times by 1 test: return; | 9 |
| 433 | if (runnable->autoDelete()| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
&& !--runnable->ref| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
) { | 0-2 |
| 434 | delete runnable; | - |
| 435 | }executed 2 times by 1 test: end of block | 2 |
| 436 | }executed 3 times by 1 test: end of block | 3 |
| 437 | | - |
| 438 | | - |
| | |