| Line | Source | Count |
| 1 | | - |
| 2 | | - |
| 3 | | - |
| 4 | | - |
| 5 | | - |
| 6 | | - |
| 7 | | - |
| 8 | | - |
| 9 | | - |
| 10 | | - |
| 11 | | - |
| 12 | | - |
| 13 | | - |
| 14 | | - |
| 15 | | - |
| 16 | | - |
| 17 | | - |
| 18 | | - |
| 19 | | - |
| 20 | | - |
| 21 | | - |
| 22 | | - |
| 23 | | - |
| 24 | | - |
| 25 | | - |
| 26 | | - |
| 27 | | - |
| 28 | | - |
| 29 | | - |
| 30 | | - |
| 31 | | - |
| 32 | | - |
| 33 | | - |
| 34 | | - |
| 35 | | - |
| 36 | | - |
| 37 | | - |
| 38 | | - |
| 39 | | - |
| 40 | #include "qthreadpool.h" | - |
| 41 | #include "qthreadpool_p.h" | - |
| 42 | #include "qelapsedtimer.h" | - |
| 43 | | - |
| 44 | #include <algorithm> | - |
| 45 | | - |
| 46 | #ifndef QT_NO_THREAD | - |
| 47 | | - |
| 48 | QT_BEGIN_NAMESPACE | - |
| 49 | | - |
| 50 | Q_GLOBAL_STATIC(QThreadPool, theInstance)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
- ...
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 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
- ...
| 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 |
| 0-1524523 |
| 51 | | - |
| 52 | | - |
| 53 | | - |
| 54 | | - |
| 55 | class QThreadPoolThread : public QThread | - |
| 56 | { | - |
| 57 | public: | - |
| 58 | QThreadPoolThread(QThreadPoolPrivate *manager); | - |
| 59 | void run() Q_DECL_OVERRIDE; | - |
| 60 | void registerThreadInactive(); | - |
| 61 | | - |
| 62 | QWaitCondition runnableReady; | - |
| 63 | QThreadPoolPrivate *manager; | - |
| 64 | QRunnable *runnable; | - |
| 65 | }; | - |
| 66 | | - |
| 67 | | - |
| 68 | | - |
| 69 | | - |
| 70 | | - |
| 71 | | - |
| 72 | | - |
| 73 | | - |
| 74 | | - |
| 75 | QThreadPoolThread::QThreadPoolThread(QThreadPoolPrivate *manager) | - |
| 76 | :manager(manager), runnable(0) | - |
| 77 | {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
- ...
}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 |
| 78 | | - |
| 79 | | - |
| 80 | | - |
| 81 | | - |
| 82 | void QThreadPoolThread::run() | - |
| 83 | { | - |
| 84 | QMutexLocker locker(&manager->mutex); | - |
| 85 | for(;;) { | - |
| 86 | QRunnable *r = runnable; | - |
| 87 | runnable = 0; | - |
| 88 | | - |
| 89 | do { | - |
| 90 | 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 |
| 91 | const bool autoDelete = r->autoDelete(); | - |
| 92 | | - |
| 93 | | - |
| 94 | | - |
| 95 | locker.unlock(); | - |
| 96 | #ifndef QT_NO_EXCEPTIONS | - |
| 97 | try { | - |
| 98 | #endif | - |
| 99 | r->run(); | - |
| 100 | #ifndef QT_NO_EXCEPTIONS | - |
| 101 | } catch (...) {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 |
| 102 | qWarning("Qt Concurrent has caught an exception thrown from a worker thread.\n" | - |
| 103 | "This is not supported, exceptions thrown in worker threads must be\n" | - |
| 104 | "caught before control returns to Qt Concurrent."); | - |
| 105 | registerThreadInactive(); | - |
| 106 | throw; never executed: throw; | 0 |
| 107 | } | - |
| 108 | #endif | - |
| 109 | locker.relock(); | - |
| 110 | | - |
| 111 | if (autoDelete && !--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 | evaluated 1346583 times by 7 testsEvaluated by:- tst_QFutureWatcher
- tst_QThreadPool
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentThreadEngine
- tst_qtconcurrentiteratekernel - unknown status
|
| 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 |
| 112 | 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 |
| 113 | }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 |
| 114 | | - |
| 115 | | - |
| 116 | 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 |
| 117 | break;executed 5 times by 2 tests: break;Executed by:- tst_QThreadPool
- tst_QtConcurrentRun
| 5 |
| 118 | | - |
| 119 | r = !manager->queue.isEmpty() ? manager->queue.takeFirst().first : 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-2525694 |
| 120 | } while (r != 0);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
- ...
| 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 |
| 121 | | - |
| 122 | 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 |
| 123 | registerThreadInactive(); | - |
| 124 | break; never executed: break; | 0 |
| 125 | } | - |
| 126 | | - |
| 127 | | - |
| 128 | bool expired = manager->tooManyThreadsActive(); | - |
| 129 | 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 |
| 130 | manager->waitingThreads.enqueue(this); | - |
| 131 | registerThreadInactive(); | - |
| 132 | | - |
| 133 | runnableReady.wait(locker.mutex(), manager->expiryTimeout); | - |
| 134 | ++manager->activeThreads; | - |
| 135 | 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 |
| 136 | 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 |
| 137 | }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 |
| 138 | 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 |
| 139 | manager->expiredThreads.enqueue(this); | - |
| 140 | registerThreadInactive(); | - |
| 141 | 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 |
| 142 | } | - |
| 143 | }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 |
| 144 | }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 |
| 145 | | - |
| 146 | void QThreadPoolThread::registerThreadInactive() | - |
| 147 | { | - |
| 148 | if (--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 |
| 149 | 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 |
| 150 | }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 |
| 151 | | - |
| 152 | | - |
| 153 | | - |
| 154 | | - |
| 155 | | - |
| 156 | QThreadPoolPrivate:: QThreadPoolPrivate() | - |
| 157 | : isExiting(false), | - |
| 158 | expiryTimeout(30000), | - |
| 159 | maxThreadCount(qAbs(QThread::idealThreadCount())), | - |
| 160 | reservedThreads(0), | - |
| 161 | activeThreads(0) | - |
| 162 | {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
- ...
}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 |
| 163 | | - |
| 164 | bool QThreadPoolPrivate::tryStart(QRunnable *task) | - |
| 165 | { | - |
| 166 | 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 |
| 167 | | - |
| 168 | startThread(task); | - |
| 169 | return 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 |
| 170 | } | - |
| 171 | | - |
| 172 | | - |
| 173 | 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 |
| 174 | return 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 |
| 175 | | - |
| 176 | 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 |
| 177 | | - |
| 178 | enqueueTask(task); | - |
| 179 | waitingThreads.takeFirst()->runnableReady.wakeOne(); | - |
| 180 | return 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 |
| 181 | } | - |
| 182 | | - |
| 183 | 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 |
| 184 | | - |
| 185 | QThreadPoolThread *thread = expiredThreads.dequeue(); | - |
| 186 | Q_ASSERT(thread->runnable == 0); | - |
| 187 | | - |
| 188 | ++activeThreads; | - |
| 189 | | - |
| 190 | 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 |
| 191 | ++task->ref;executed 11 times by 3 tests: ++task->ref;Executed by:- tst_QFtp
- tst_QNetworkReply
- tst_QSocks5SocketEngine
| 11 |
| 192 | thread->runnable = task; | - |
| 193 | thread->start(); | - |
| 194 | return true;executed 15 times by 4 tests: return true;Executed by:- tst_QFtp
- tst_QNetworkReply
- tst_QSocks5SocketEngine
- tst_QThreadPool
| 15 |
| 195 | } | - |
| 196 | | - |
| 197 | | - |
| 198 | startThread(task); | - |
| 199 | return 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 |
| 200 | } | - |
| 201 | | - |
| 202 | inline bool operator<(int priority, const QPair<QRunnable *, int> &p) | - |
| 203 | {executed 1 time by 1 test: return p.second < priority; return p.second < priority; }executed 1 time by 1 test: return p.second < priority; | 1 |
| 204 | inline bool operator<(const QPair<QRunnable *, int> &p, int priority) | - |
| 205 | { never executed: return priority < p.second; return priority < p.second; }never executed: return priority < p.second; | 0 |
| 206 | | - |
| 207 | void QThreadPoolPrivate::enqueueTask(QRunnable *runnable, int priority) | - |
| 208 | { | - |
| 209 | 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 |
| 210 | ++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 |
| 211 | | - |
| 212 | | - |
| 213 | QVector<QPair<QRunnable *, int> >::const_iterator begin = queue.constBegin(); | - |
| 214 | QVector<QPair<QRunnable *, int> >::const_iterator it = queue.constEnd(); | - |
| 215 | if (it != begin && priority > (*(it - 1)).second)| 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
|
| 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 |
| 216 | it = std::upper_bound(begin, --it, priority);executed 2 times by 1 test: it = std::upper_bound(begin, --it, priority); | 2 |
| 217 | queue.insert(it - begin, qMakePair(runnable, priority)); | - |
| 218 | }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 |
| 219 | | - |
| 220 | int QThreadPoolPrivate::activeThreadCount() const | - |
| 221 | { | - |
| 222 | return (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 |
| 223 | - 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 |
| 224 | - 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 |
| 225 | + 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 |
| 226 | } | - |
| 227 | | - |
| 228 | void QThreadPoolPrivate::tryToStartMoreThreads() | - |
| 229 | { | - |
| 230 | | - |
| 231 | while (!queue.isEmpty() && tryStart(queue.constFirst().first))| 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
- ...
|
| TRUE | evaluated 9 times by 1 test | | FALSE | evaluated 2 times by 1 test |
| 2-49801 |
| 232 | queue.removeFirst();executed 9 times by 1 test: queue.removeFirst(); | 9 |
| 233 | }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 |
| 234 | | - |
| 235 | bool QThreadPoolPrivate::tooManyThreadsActive() const | - |
| 236 | { | - |
| 237 | const int activeThreadCount = this->activeThreadCount(); | - |
| 238 | return 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 |
| 239 | } | - |
| 240 | | - |
| 241 | | - |
| 242 | | - |
| 243 | | - |
| 244 | void QThreadPoolPrivate::startThread(QRunnable *runnable) | - |
| 245 | { | - |
| 246 | QScopedPointer <QThreadPoolThread> thread(new QThreadPoolThread(this)); | - |
| 247 | thread->setObjectName(QLatin1String("Thread (pooled)")); | - |
| 248 | allThreads.insert(thread.data()); | - |
| 249 | ++activeThreads; | - |
| 250 | | - |
| 251 | 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 |
| 252 | ++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 |
| 253 | thread->runnable = runnable; | - |
| 254 | thread.take()->start(); | - |
| 255 | }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 |
| 256 | | - |
| 257 | | - |
| 258 | | - |
| 259 | | - |
| 260 | | - |
| 261 | void QThreadPoolPrivate::reset() | - |
| 262 | { | - |
| 263 | QMutexLocker locker(&mutex); | - |
| 264 | isExiting = true; | - |
| 265 | | - |
| 266 | 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 |
| 267 | | - |
| 268 | QSet<QThreadPoolThread *> allThreadsCopy; | - |
| 269 | allThreadsCopy.swap(allThreads); | - |
| 270 | locker.unlock(); | - |
| 271 | | - |
| 272 | for (QThreadPoolThread *thread : qAsConst(allThreadsCopy)) { | - |
| 273 | thread->runnableReady.wakeAll(); | - |
| 274 | thread->wait(); | - |
| 275 | delete thread; | - |
| 276 | }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 |
| 277 | | - |
| 278 | locker.relock(); | - |
| 279 | | - |
| 280 | }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 |
| 281 | | - |
| 282 | waitingThreads.clear(); | - |
| 283 | expiredThreads.clear(); | - |
| 284 | | - |
| 285 | isExiting = false; | - |
| 286 | }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 |
| 287 | | - |
| 288 | bool QThreadPoolPrivate::waitForDone(int msecs) | - |
| 289 | { | - |
| 290 | QMutexLocker locker(&mutex); | - |
| 291 | 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 |
| 292 | while (!(queue.isEmpty() && activeThreads == 0))| 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
|
| 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 |
| 293 | 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 |
| 294 | } else {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
- ...
| 4777 |
| 295 | QElapsedTimer timer; | - |
| 296 | timer.start(); | - |
| 297 | int t; | - |
| 298 | while (!(queue.isEmpty() && activeThreads == 0) &&| TRUE | evaluated 8 times by 2 testsEvaluated by:- tst_QFuture
- tst_QThreadPool
| | FALSE | never evaluated |
| 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 |
| 299 | ((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 |
| 300 | noActiveThreads.wait(locker.mutex(), t);executed 3 times by 2 tests: noActiveThreads.wait(locker.mutex(), t);Executed by:- tst_QFuture
- tst_QThreadPool
| 3 |
| 301 | }executed 5 times by 2 tests: end of blockExecuted by:- tst_QFuture
- tst_QThreadPool
| 5 |
| 302 | return 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 |
| 303 | } | - |
| 304 | | - |
| 305 | void QThreadPoolPrivate::clear() | - |
| 306 | { | - |
| 307 | QMutexLocker locker(&mutex); | - |
| 308 | for (QVector<QPair<QRunnable *, int> >::const_iterator it = queue.constBegin(); | - |
| 309 | it != queue.constEnd(); ++it) {| TRUE | evaluated 11 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| 1-11 |
| 310 | QRunnable* r = it->first; | - |
| 311 | if (r->autoDelete() && !--r->ref)| TRUE | evaluated 11 times by 1 test | | FALSE | never evaluated |
| TRUE | evaluated 11 times by 1 test | | FALSE | never evaluated |
| 0-11 |
| 312 | delete r;executed 11 times by 1 test: delete r; | 11 |
| 313 | }executed 11 times by 1 test: end of block | 11 |
| 314 | queue.clear(); | - |
| 315 | }executed 1 time by 1 test: end of block | 1 |
| 316 | | - |
| 317 | | - |
| 318 | | - |
| 319 | | - |
| 320 | | - |
| 321 | | - |
| 322 | bool QThreadPoolPrivate::stealRunnable(QRunnable *runnable) | - |
| 323 | { | - |
| 324 | 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 |
| 325 | return false;executed 65985 times by 6 tests: return false;Executed by:- tst_QFuture
- tst_QFutureWatcher
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentThreadEngine
| 65985 |
| 326 | { | - |
| 327 | QMutexLocker locker(&mutex); | - |
| 328 | QVector<QPair<QRunnable *, int> >::iterator it = queue.begin(); | - |
| 329 | QVector<QPair<QRunnable *, int> >::iterator end = queue.end(); | - |
| 330 | | - |
| 331 | 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 |
| 332 | 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 |
| 333 | queue.erase(it); | - |
| 334 | return true;executed 66196 times by 4 tests: return true;Executed by:- tst_QFutureWatcher
- tst_QLockFile
- tst_QThreadPool
- tst_QtConcurrentRun
| 66196 |
| 335 | } | - |
| 336 | ++it; | - |
| 337 | }executed 771697 times by 3 tests: end of blockExecuted by:- tst_QFutureWatcher
- tst_QThreadPool
- tst_QtConcurrentRun
| 771697 |
| 338 | } | - |
| 339 | | - |
| 340 | return 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 |
| 341 | } | - |
| 342 | | - |
| 343 | | - |
| 344 | | - |
| 345 | | - |
| 346 | | - |
| 347 | | - |
| 348 | | - |
| 349 | void QThreadPoolPrivate::stealAndRunRunnable(QRunnable *runnable) | - |
| 350 | { | - |
| 351 | 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 |
| 352 | 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 |
| 353 | const bool autoDelete = runnable->autoDelete(); | - |
| 354 | bool del = autoDelete && !--runnable->ref;| TRUE | evaluated 66193 times by 3 testsEvaluated by:- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentRun
| | FALSE | never evaluated |
| TRUE | evaluated 66193 times by 3 testsEvaluated by:- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentRun
| | FALSE | never evaluated |
| 0-66193 |
| 355 | | - |
| 356 | runnable->run(); | - |
| 357 | | - |
| 358 | if (del) {| TRUE | evaluated 66193 times by 3 testsEvaluated by:- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentRun
| | FALSE | never evaluated |
| 0-66193 |
| 359 | delete runnable; | - |
| 360 | }executed 66193 times by 3 tests: end of blockExecuted by:- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentRun
| 66193 |
| 361 | }executed 66193 times by 3 tests: end of blockExecuted by:- tst_QFutureWatcher
- tst_QLockFile
- tst_QtConcurrentRun
| 66193 |
| 362 | | - |
| 363 | | - |
| 364 | | - |
| 365 | | - |
| 366 | | - |
| 367 | | - |
| 368 | | - |
| 369 | | - |
| 370 | | - |
| 371 | | - |
| 372 | | - |
| 373 | | - |
| 374 | | - |
| 375 | | - |
| 376 | | - |
| 377 | | - |
| 378 | | - |
| 379 | | - |
| 380 | | - |
| 381 | | - |
| 382 | | - |
| 383 | | - |
| 384 | | - |
| 385 | | - |
| 386 | | - |
| 387 | | - |
| 388 | | - |
| 389 | | - |
| 390 | | - |
| 391 | | - |
| 392 | | - |
| 393 | | - |
| 394 | | - |
| 395 | | - |
| 396 | | - |
| 397 | | - |
| 398 | | - |
| 399 | | - |
| 400 | | - |
| 401 | | - |
| 402 | | - |
| 403 | | - |
| 404 | | - |
| 405 | | - |
| 406 | | - |
| 407 | | - |
| 408 | | - |
| 409 | | - |
| 410 | | - |
| 411 | | - |
| 412 | | - |
| 413 | | - |
| 414 | | - |
| 415 | | - |
| 416 | | - |
| 417 | | - |
| 418 | | - |
| 419 | QThreadPool::QThreadPool(QObject *parent) | - |
| 420 | : QObject(*new QThreadPoolPrivate, parent) | - |
| 421 | {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
- ...
}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 |
| 422 | | - |
| 423 | | - |
| 424 | | - |
| 425 | | - |
| 426 | | - |
| 427 | QThreadPool::~QThreadPool() | - |
| 428 | { | - |
| 429 | waitForDone(); | - |
| 430 | }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 |
| 431 | | - |
| 432 | | - |
| 433 | | - |
| 434 | | - |
| 435 | QThreadPool *QThreadPool::globalInstance() | - |
| 436 | { | - |
| 437 | return 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 |
| 438 | } | - |
| 439 | | - |
| 440 | | - |
| 441 | | - |
| 442 | | - |
| 443 | | - |
| 444 | | - |
| 445 | | - |
| 446 | | - |
| 447 | | - |
| 448 | | - |
| 449 | | - |
| 450 | | - |
| 451 | | - |
| 452 | | - |
| 453 | | - |
| 454 | | - |
| 455 | void QThreadPool::start(QRunnable *runnable, int priority) | - |
| 456 | { | - |
| 457 | 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 |
| 458 | return; never executed: return; | 0 |
| 459 | | - |
| 460 | Q_D(QThreadPool); | - |
| 461 | QMutexLocker locker(&d->mutex); | - |
| 462 | 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 |
| 463 | d->enqueueTask(runnable, priority); | - |
| 464 | | - |
| 465 | 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 |
| 466 | d->waitingThreads.takeFirst()->runnableReady.wakeOne();executed 7 times by 2 tests: d->waitingThreads.takeFirst()->runnableReady.wakeOne();Executed by:- tst_QThreadPool
- tst_QtConcurrentRun
| 7 |
| 467 | }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 |
| 468 | }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 |
| 469 | | - |
| 470 | | - |
| 471 | | - |
| 472 | | - |
| 473 | | - |
| 474 | | - |
| 475 | | - |
| 476 | | - |
| 477 | | - |
| 478 | | - |
| 479 | | - |
| 480 | | - |
| 481 | | - |
| 482 | | - |
| 483 | | - |
| 484 | | - |
| 485 | | - |
| 486 | bool QThreadPool::tryStart(QRunnable *runnable) | - |
| 487 | { | - |
| 488 | 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 |
| 489 | return false; never executed: return false; | 0 |
| 490 | | - |
| 491 | Q_D(QThreadPool); | - |
| 492 | | - |
| 493 | QMutexLocker locker(&d->mutex); | - |
| 494 | | - |
| 495 | if (d->allThreads.isEmpty() == false && d->activeThreadCount() >= d->maxThreadCount)| 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
|
| 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 |
| 496 | return false;executed 80248 times by 6 tests: return false;Executed by:- tst_QFutureWatcher
- tst_QThreadPool
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentThreadEngine
| 80248 |
| 497 | | - |
| 498 | return 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 |
| 499 | } | - |
| 500 | | - |
| 501 | | - |
| 502 | | - |
| 503 | | - |
| 504 | | - |
| 505 | | - |
| 506 | | - |
| 507 | | - |
| 508 | | - |
| 509 | | - |
| 510 | | - |
| 511 | | - |
| 512 | | - |
| 513 | | - |
| 514 | | - |
| 515 | int QThreadPool::expiryTimeout() const | - |
| 516 | { | - |
| 517 | Q_D(const QThreadPool); | - |
| 518 | return d->expiryTimeout;executed 3 times by 1 test: return d->expiryTimeout; | 3 |
| 519 | } | - |
| 520 | | - |
| 521 | void QThreadPool::setExpiryTimeout(int expiryTimeout) | - |
| 522 | { | - |
| 523 | Q_D(QThreadPool); | - |
| 524 | if (d->expiryTimeout == expiryTimeout)| TRUE | never evaluated | | FALSE | evaluated 3 times by 1 test |
| 0-3 |
| 525 | return; never executed: return; | 0 |
| 526 | d->expiryTimeout = expiryTimeout; | - |
| 527 | }executed 3 times by 1 test: end of block | 3 |
| 528 | | - |
| 529 | | - |
| 530 | | - |
| 531 | | - |
| 532 | | - |
| 533 | | - |
| 534 | | - |
| 535 | | - |
| 536 | | - |
| 537 | | - |
| 538 | | - |
| 539 | | - |
| 540 | int QThreadPool::maxThreadCount() const | - |
| 541 | { | - |
| 542 | Q_D(const QThreadPool); | - |
| 543 | return 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 |
| 544 | } | - |
| 545 | | - |
| 546 | void QThreadPool::setMaxThreadCount(int maxThreadCount) | - |
| 547 | { | - |
| 548 | Q_D(QThreadPool); | - |
| 549 | QMutexLocker locker(&d->mutex); | - |
| 550 | | - |
| 551 | 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 |
| 552 | return;executed 20 times by 2 tests: return;Executed by:- tst_QThreadPool
- tst_QtConcurrentRun
| 20 |
| 553 | | - |
| 554 | d->maxThreadCount = maxThreadCount; | - |
| 555 | d->tryToStartMoreThreads(); | - |
| 556 | }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 |
| 557 | | - |
| 558 | | - |
| 559 | | - |
| 560 | | - |
| 561 | | - |
| 562 | | - |
| 563 | | - |
| 564 | | - |
| 565 | | - |
| 566 | | - |
| 567 | | - |
| 568 | int QThreadPool::activeThreadCount() const | - |
| 569 | { | - |
| 570 | Q_D(const QThreadPool); | - |
| 571 | QMutexLocker locker(&d->mutex); | - |
| 572 | return d->activeThreadCount();executed 49825 times by 1 test: return d->activeThreadCount(); | 49825 |
| 573 | } | - |
| 574 | | - |
| 575 | | - |
| 576 | | - |
| 577 | | - |
| 578 | | - |
| 579 | | - |
| 580 | | - |
| 581 | | - |
| 582 | | - |
| 583 | | - |
| 584 | | - |
| 585 | | - |
| 586 | | - |
| 587 | void QThreadPool::reserveThread() | - |
| 588 | { | - |
| 589 | Q_D(QThreadPool); | - |
| 590 | QMutexLocker locker(&d->mutex); | - |
| 591 | ++d->reservedThreads; | - |
| 592 | }executed 49665 times by 1 test: end of block | 49665 |
| 593 | | - |
| 594 | | - |
| 595 | | - |
| 596 | | - |
| 597 | | - |
| 598 | | - |
| 599 | | - |
| 600 | | - |
| 601 | | - |
| 602 | | - |
| 603 | | - |
| 604 | | - |
| 605 | | - |
| 606 | void QThreadPool::releaseThread() | - |
| 607 | { | - |
| 608 | Q_D(QThreadPool); | - |
| 609 | QMutexLocker locker(&d->mutex); | - |
| 610 | --d->reservedThreads; | - |
| 611 | d->tryToStartMoreThreads(); | - |
| 612 | }executed 49665 times by 1 test: end of block | 49665 |
| 613 | | - |
| 614 | | - |
| 615 | | - |
| 616 | | - |
| 617 | | - |
| 618 | | - |
| 619 | | - |
| 620 | bool QThreadPool::waitForDone(int msecs) | - |
| 621 | { | - |
| 622 | Q_D(QThreadPool); | - |
| 623 | bool rc = d->waitForDone(msecs); | - |
| 624 | 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 |
| 625 | 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 |
| 626 | return 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 |
| 627 | } | - |
| 628 | | - |
| 629 | | - |
| 630 | | - |
| 631 | | - |
| 632 | | - |
| 633 | | - |
| 634 | | - |
| 635 | | - |
| 636 | | - |
| 637 | | - |
| 638 | void QThreadPool::clear() | - |
| 639 | { | - |
| 640 | Q_D(QThreadPool); | - |
| 641 | d->clear(); | - |
| 642 | }executed 1 time by 1 test: end of block | 1 |
| 643 | | - |
| 644 | | - |
| 645 | | - |
| 646 | | - |
| 647 | | - |
| 648 | | - |
| 649 | | - |
| 650 | | - |
| 651 | | - |
| 652 | | - |
| 653 | void QThreadPool::cancel(QRunnable *runnable) | - |
| 654 | { | - |
| 655 | Q_D(QThreadPool); | - |
| 656 | if (!d->stealRunnable(runnable))| TRUE | evaluated 9 times by 1 test | | FALSE | evaluated 3 times by 1 test |
| 3-9 |
| 657 | return;executed 9 times by 1 test: return; | 9 |
| 658 | if (runnable->autoDelete() && !--runnable->ref) {| TRUE | evaluated 2 times by 1 test | | FALSE | evaluated 1 time by 1 test |
| TRUE | evaluated 2 times by 1 test | | FALSE | never evaluated |
| 0-2 |
| 659 | delete runnable; | - |
| 660 | }executed 2 times by 1 test: end of block | 2 |
| 661 | }executed 3 times by 1 test: end of block | 3 |
| 662 | | - |
| 663 | QT_END_NAMESPACE | - |
| 664 | | - |
| 665 | #endif | - |
| | |