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