qthreadpool.cpp

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

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9