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