qthread.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/corelib/thread/qthread.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8-
9-
10QThreadData::QThreadData(int initialRefCount)-
11 : _ref(initialRefCount), loopLevel(0), thread(0), threadId(0),-
12 eventDispatcher(0),-
13 quitNow(false), canWait(true), isAdopted(false), requiresCoreApplication(true)-
14{-
15-
16}
executed 603179 times by 713 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
603179
17-
18QThreadData::~QThreadData()-
19{-
20 ((!(_ref.load() == 0)) ? qt_assert("_ref.load() == 0",__FILE__,61) : qt_noop());-
21-
22-
23-
24-
25-
26-
27-
28 if (this->thread == QCoreApplicationPrivate::theMainThread
this->thread =...:theMainThreadDescription
TRUEevaluated 893 times by 347 tests
Evaluated by:
  • tst_compiler - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemmodel - 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_qaction - unknown status
  • tst_qasn1element - unknown status
  • tst_qatomicint - unknown status
  • tst_qauthenticator - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuffer - unknown status
  • tst_qbytearray - unknown status
  • ...
FALSEevaluated 601705 times by 546 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QAtomicInt
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDnsLookup_Appless
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGlobalStatic
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QMutex
  • tst_QMutexLocker
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
) {
893-601705
29 QCoreApplicationPrivate::theMainThread = 0;-
30 QThreadData::clearCurrentThreadData();-
31 }
executed 893 times by 347 tests: end of block
Executed by:
  • tst_compiler - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemmodel - 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_qaction - unknown status
  • tst_qasn1element - unknown status
  • tst_qatomicint - unknown status
  • tst_qauthenticator - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuffer - unknown status
  • tst_qbytearray - unknown status
  • ...
893
32-
33 QThread *t = thread;-
34 thread = 0;-
35 delete t;-
36-
37 for (int i = 0; i < postEventList.size()
i < postEventList.size()Description
TRUEevaluated 1456 times by 50 tests
Evaluated by:
  • tst_QDBusPendingCall
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QTcpSocket
  • tst_QThread
  • tst_Spdy
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qdatetimeedit - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdial - unknown status
  • tst_qdirmodel - unknown status
  • tst_qerrormessage - unknown status
  • tst_qfontcombobox - unknown status
  • tst_qftp - unknown status
  • ...
FALSEevaluated 602598 times by 580 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QAtomicInt
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDnsLookup_Appless
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGlobalStatic
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QMutex
  • tst_QMutexLocker
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
; ++i) {
1456-602598
38 const QPostEvent &pe = postEventList.at(i);-
39 if (pe.event
pe.eventDescription
TRUEnever evaluated
FALSEevaluated 1456 times by 50 tests
Evaluated by:
  • tst_QDBusPendingCall
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QTcpSocket
  • tst_QThread
  • tst_Spdy
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qdatetimeedit - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdial - unknown status
  • tst_qdirmodel - unknown status
  • tst_qerrormessage - unknown status
  • tst_qfontcombobox - unknown status
  • tst_qftp - unknown status
  • ...
) {
0-1456
40 --pe.receiver->d_func()->postedEvents;-
41 pe.event->posted = false;-
42 delete pe.event;-
43 }
never executed: end of block
0
44 }
executed 1456 times by 50 tests: end of block
Executed by:
  • tst_QDBusPendingCall
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QTcpSocket
  • tst_QThread
  • tst_Spdy
  • tst_modeltest - unknown status
  • tst_networkselftest - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • tst_qbackingstore - unknown status
  • tst_qdatetimeedit - unknown status
  • tst_qdbuscontext - unknown status
  • tst_qdbuslocalcalls - unknown status
  • tst_qdbuspendingreply - unknown status
  • tst_qdbusreply - unknown status
  • tst_qdial - unknown status
  • tst_qdirmodel - unknown status
  • tst_qerrormessage - unknown status
  • tst_qfontcombobox - unknown status
  • tst_qftp - unknown status
  • ...
1456
45-
46-
47}
executed 602598 times by 580 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QAtomicInt
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDnsLookup_Appless
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGlobalStatic
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QMutex
  • tst_QMutexLocker
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
602598
48-
49void QThreadData::ref()-
50{-
51-
52 (void) _ref.ref();-
53 ((!(_ref.load() != 0)) ? qt_assert("_ref.load() != 0",__FILE__,94) : qt_noop());-
54-
55}
executed 2710482 times by 946 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
2710482
56-
57void QThreadData::deref()-
58{-
59-
60 if (!_ref.deref()
!_ref.deref()Description
TRUEevaluated 602598 times by 580 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QAtomicInt
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDnsLookup_Appless
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGlobalStatic
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QMutex
  • tst_QMutexLocker
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
FALSEevaluated 2708661 times by 929 tests
Evaluated by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • ...
)
602598-2708661
61 delete this;
executed 602598 times by 580 tests: delete this;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QAtomicInt
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDnsLookup_Appless
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QGlobalStatic
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QMetaObject
  • tst_QMetaType
  • tst_QMutex
  • tst_QMutexLocker
  • tst_QNetworkAccessManager_And_QProgressDialog
  • ...
602598
62-
63}
executed 3311181 times by 929 tests: end of block
Executed by:
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAnimationGroup
  • tst_QApplication
  • tst_QAsn1Element
  • ...
3311181
64-
65-
66-
67-
68-
69QAdoptedThread::QAdoptedThread(QThreadData *data)-
70 : QThread(*new QThreadPrivate(data))-
71{-
72-
73-
74-
75 d_func()->running = true;-
76 d_func()->finished = false;-
77 init();-
78-
79-
80-
81}
executed 1008 times by 19 tests: end of block
Executed by:
  • tst_QThread
  • tst_qapplication - unknown status
  • tst_qcoreapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlockfile - unknown status
  • tst_qlogging - unknown status
  • tst_qnetworkreply - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_qtextstream - unknown status
  • tst_quuid - unknown status
  • tst_selftests - unknown status
1008
82-
83QAdoptedThread::~QAdoptedThread()-
84{-
85-
86}-
87-
88void QAdoptedThread::run()-
89{-
90-
91 QMessageLogger(__FILE__, 132, __PRETTY_FUNCTION__).fatal("QAdoptedThread::run(): Internal error, this implementation should never be called.");-
92}
never executed: end of block
0
93-
94-
95-
96-
97-
98QThreadPrivate::QThreadPrivate(QThreadData *d)-
99 : QObjectPrivate(), running(false), finished(false),-
100 isInFinish(false), interruptionRequested(false),-
101 exited(false), returnCode(-1),-
102 stackSize(0), priority(QThread::InheritPriority), data(d)-
103{-
104 if (!data
!dataDescription
TRUEevaluated 601945 times by 545 tests
Evaluated by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
FALSEevaluated 1008 times by 19 tests
Evaluated by:
  • tst_QThread
  • tst_qapplication - unknown status
  • tst_qcoreapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlockfile - unknown status
  • tst_qlogging - unknown status
  • tst_qnetworkreply - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_qtextstream - unknown status
  • tst_quuid - unknown status
  • tst_selftests - unknown status
)
1008-601945
105 data = new QThreadData;
executed 601945 times by 545 tests: data = new QThreadData;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
601945
106}
executed 602953 times by 556 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
602953
107-
108QThreadPrivate::~QThreadPrivate()-
109{-
110 data->deref();-
111}
executed 603002 times by 609 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QAtomicInt
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDnsLookup_Appless
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFreeList
  • tst_QFuture
  • tst_QGlobalStatic
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QMetaObject
  • tst_QMetaType
  • ...
603002
112QThread *QThread::currentThread()-
113{-
114 QThreadData *data = QThreadData::current();-
115 ((!(data != 0)) ? qt_assert("data != 0",__FILE__,364) : qt_noop());-
116 return
executed 5059558 times by 769 tests: return data->thread;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
data->thread;
executed 5059558 times by 769 tests: return data->thread;
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
5059558
117}-
118QThread::QThread(QObject *parent)-
119 : QObject(*(new QThreadPrivate), parent)-
120{-
121 QThreadPrivate * const d = d_func();-
122-
123 d->data->thread = this;-
124}
executed 601945 times by 545 tests: end of block
Executed by:
  • tst_Collections
  • tst_Compiler
  • tst_Gestures
  • tst_Lancelot
  • tst_LargeFile
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_PlatformSocketEngine
  • tst_QAbstractAnimation
  • tst_QAbstractButton
  • tst_QAbstractFileEngine
  • tst_QAbstractItemModel
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractPrintDialog
  • tst_QAbstractProxyModel
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSocket
  • tst_QAbstractSpinBox
  • tst_QAbstractTextDocumentLayout
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QAlgorithms
  • ...
601945
125-
126-
127-
128-
129QThread::QThread(QThreadPrivate &dd, QObject *parent)-
130 : QObject(dd, parent)-
131{-
132 QThreadPrivate * const d = d_func();-
133-
134 d->data->thread = this;-
135}
executed 1008 times by 19 tests: end of block
Executed by:
  • tst_QThread
  • tst_qapplication - unknown status
  • tst_qcoreapplication - unknown status
  • tst_qdbusabstractadaptor - unknown status
  • tst_qdbusabstractinterface - unknown status
  • tst_qdbuscpp2xml - unknown status
  • tst_qdbusinterface - unknown status
  • tst_qdbusmarshall - unknown status
  • tst_qdbusxml2cpp - unknown status
  • tst_qlockfile - unknown status
  • tst_qlogging - unknown status
  • tst_qnetworkreply - unknown status
  • tst_qobject - unknown status
  • tst_qprocess - unknown status
  • tst_qsharedmemory - unknown status
  • tst_qsystemsemaphore - unknown status
  • tst_qtextstream - unknown status
  • tst_quuid - unknown status
  • tst_selftests - unknown status
1008
136QThread::~QThread()-
137{-
138 QThreadPrivate * const d = d_func();-
139 {-
140 QMutexLocker locker(&d->mutex);-
141 if (d->isInFinish
d->isInFinishDescription
TRUEevaluated 57 times by 5 tests
Evaluated by:
  • tst_QCoreApplication
  • tst_QDBusThreading
  • tst_QGuiApplication
  • tst_QNetworkProxyFactory
  • tst_QThread
FALSEevaluated 602945 times by 609 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QAtomicInt
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDnsLookup_Appless
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFreeList
  • tst_QFuture
  • tst_QGlobalStatic
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QMetaObject
  • tst_QMetaType
  • ...
) {
57-602945
142 locker.unlock();-
143 wait();-
144 locker.relock();-
145 }
executed 57 times by 5 tests: end of block
Executed by:
  • tst_QCoreApplication
  • tst_QDBusThreading
  • tst_QGuiApplication
  • tst_QNetworkProxyFactory
  • tst_QThread
57
146 if (d->running
d->runningDescription
TRUEevaluated 892 times by 347 tests
Evaluated by:
  • tst_compiler - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemmodel - 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_qaction - unknown status
  • tst_qasn1element - unknown status
  • tst_qatomicint - unknown status
  • tst_qauthenticator - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuffer - unknown status
  • tst_qbytearray - unknown status
  • ...
FALSEevaluated 602110 times by 609 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QAtomicInt
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDnsLookup_Appless
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFreeList
  • tst_QFuture
  • tst_QGlobalStatic
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QMetaObject
  • tst_QMetaType
  • ...
&& !d->finished
!d->finishedDescription
TRUEevaluated 892 times by 347 tests
Evaluated by:
  • tst_compiler - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemmodel - 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_qaction - unknown status
  • tst_qasn1element - unknown status
  • tst_qatomicint - unknown status
  • tst_qauthenticator - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuffer - unknown status
  • tst_qbytearray - unknown status
  • ...
FALSEnever evaluated
&& !d->data->isAdopted
!d->data->isAdoptedDescription
TRUEnever evaluated
FALSEevaluated 892 times by 347 tests
Evaluated by:
  • tst_compiler - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_largefile - unknown status
  • tst_platformsocketengine - unknown status
  • tst_q_func_info - unknown status
  • tst_qabstractanimation - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractfileengine - unknown status
  • tst_qabstractitemmodel - 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_qaction - unknown status
  • tst_qasn1element - unknown status
  • tst_qatomicint - unknown status
  • tst_qauthenticator - unknown status
  • tst_qboxlayout - unknown status
  • tst_qbrush - unknown status
  • tst_qbuffer - unknown status
  • tst_qbytearray - unknown status
  • ...
)
0-602110
147 QMessageLogger(__FILE__, 414, __PRETTY_FUNCTION__).warning("QThread: Destroyed while thread is still running");
never executed: QMessageLogger(__FILE__, 414, __PRETTY_FUNCTION__).warning("QThread: Destroyed while thread is still running");
0
148-
149 d->data->thread = 0;-
150 }-
151}
executed 603002 times by 609 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QAtomicInt
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusPendingCall
  • tst_QDBusThreading
  • tst_QDnsLookup_Appless
  • tst_QEventLoop
  • tst_QFileDialog2
  • tst_QFileSystemModel
  • tst_QFiledialog
  • tst_QFreeList
  • tst_QFuture
  • tst_QGlobalStatic
  • tst_QGraphicsProxyWidget
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QLocalSocket
  • tst_QLogging
  • tst_QMetaObject
  • tst_QMetaType
  • ...
603002
152-
153-
154-
155-
156-
157-
158bool QThread::isFinished() const-
159{-
160 const QThreadPrivate * const d = d_func();-
161 QMutexLocker locker(&d->mutex);-
162 return
executed 429542 times by 14 tests: return d->finished || d->isInFinish;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSemaphore
  • tst_QSharedMemory
  • tst_QThread
  • tst_QWaitCondition
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_spdy - unknown status
d->finished
d->finishedDescription
TRUEevaluated 653 times by 11 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSharedMemory
  • tst_QThread
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_spdy - unknown status
FALSEevaluated 428889 times by 6 tests
Evaluated by:
  • tst_QApplication
  • tst_QNetworkProxyFactory
  • tst_QSemaphore
  • tst_QSharedMemory
  • tst_QThread
  • tst_QWaitCondition
|| d->isInFinish
d->isInFinishDescription
TRUEevaluated 5106 times by 2 tests
Evaluated by:
  • tst_QNetworkProxyFactory
  • tst_QThread
FALSEevaluated 423783 times by 5 tests
Evaluated by:
  • tst_QApplication
  • tst_QSemaphore
  • tst_QSharedMemory
  • tst_QThread
  • tst_QWaitCondition
;
executed 429542 times by 14 tests: return d->finished || d->isInFinish;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QApplication
  • tst_QHttpNetworkConnection
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QSemaphore
  • tst_QSharedMemory
  • tst_QThread
  • tst_QWaitCondition
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_spdy - unknown status
653-429542
163}-
164-
165-
166-
167-
168-
169-
170bool QThread::isRunning() const-
171{-
172 const QThreadPrivate * const d = d_func();-
173 QMutexLocker locker(&d->mutex);-
174 return
executed 683 times by 228 tests: return d->running && !d->isInFinish;
Executed by:
  • tst_QApplication
  • tst_QGLThreads
  • tst_QGuiApplication
  • tst_QObject
  • tst_QOpenGlConfig
  • tst_QSemaphore
  • tst_QSslSocket
  • tst_QStateMachine
  • tst_QThread
  • tst_QWaitCondition
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • ...
d->running
d->runningDescription
TRUEevaluated 492 times by 227 tests
Evaluated by:
  • tst_QApplication
  • tst_QGLThreads
  • tst_QGuiApplication
  • tst_QOpenGlConfig
  • tst_QSemaphore
  • tst_QSslSocket
  • tst_QStateMachine
  • tst_QThread
  • tst_QWaitCondition
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • ...
FALSEevaluated 191 times by 3 tests
Evaluated by:
  • tst_QObject
  • tst_QThread
  • tst_QWaitCondition
&& !d->isInFinish
!d->isInFinishDescription
TRUEevaluated 447 times by 227 tests
Evaluated by:
  • tst_QApplication
  • tst_QGLThreads
  • tst_QGuiApplication
  • tst_QOpenGlConfig
  • tst_QSemaphore
  • tst_QSslSocket
  • tst_QStateMachine
  • tst_QThread
  • tst_QWaitCondition
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • tst_qapplication - unknown status
  • ...
FALSEevaluated 45 times by 1 test
Evaluated by:
  • tst_QThread
;
executed 683 times by 228 tests: return d->running && !d->isInFinish;
Executed by:
  • tst_QApplication
  • tst_QGLThreads
  • tst_QGuiApplication
  • tst_QObject
  • tst_QOpenGlConfig
  • tst_QSemaphore
  • tst_QSslSocket
  • tst_QStateMachine
  • tst_QThread
  • tst_QWaitCondition
  • tst_gestures - unknown status
  • tst_lancelot - unknown status
  • tst_languagechange - unknown status
  • tst_modeltest - unknown status
  • tst_qabstractbutton - unknown status
  • tst_qabstractitemview - unknown status
  • tst_qabstractprintdialog - unknown status
  • tst_qabstractproxymodel - unknown status
  • tst_qabstractscrollarea - unknown status
  • tst_qabstractslider - unknown status
  • tst_qabstractspinbox - unknown status
  • tst_qabstracttextdocumentlayout - unknown status
  • tst_qaccessibility - unknown status
  • tst_qaction - unknown status
  • tst_qactiongroup - unknown status
  • ...
45-683
175}-
176void QThread::setStackSize(uint stackSize)-
177{-
178 QThreadPrivate * const d = d_func();-
179 QMutexLocker locker(&d->mutex);-
180 ((!(!d->running)) ? qt_assert_x("QThread::setStackSize", "cannot change stack size while the thread is running",-
181 __FILE__-
182 ,-
183 461-
184 ) : qt_noop())-
185 ;-
186 d->stackSize = stackSize;-
187}
executed 2 times by 1 test: end of block
Executed by:
  • tst_QThread
2
188-
189-
190-
191-
192-
193-
194-
195uint QThread::stackSize() const-
196{-
197 const QThreadPrivate * const d = d_func();-
198 QMutexLocker locker(&d->mutex);-
199 return
executed 3 times by 1 test: return d->stackSize;
Executed by:
  • tst_QThread
d->stackSize;
executed 3 times by 1 test: return d->stackSize;
Executed by:
  • tst_QThread
3
200}-
201int QThread::exec()-
202{-
203 QThreadPrivate * const d = d_func();-
204 QMutexLocker locker(&d->mutex);-
205 d->data->quitNow = false;-
206 if (d->exited
d->exitedDescription
TRUEevaluated 28 times by 2 tests
Evaluated by:
  • tst_QNetworkReply
  • tst_QThread
FALSEevaluated 937 times by 173 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
) {
28-937
207 d->exited = false;-
208 return
executed 28 times by 2 tests: return d->returnCode;
Executed by:
  • tst_QNetworkReply
  • tst_QThread
d->returnCode;
executed 28 times by 2 tests: return d->returnCode;
Executed by:
  • tst_QNetworkReply
  • tst_QThread
28
209 }-
210 locker.unlock();-
211-
212 QEventLoop eventLoop;-
213 int returnCode = eventLoop.exec();-
214-
215 locker.relock();-
216 d->exited = false;-
217 d->returnCode = -1;-
218 return
executed 943 times by 188 tests: return returnCode;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusThreading
  • tst_QEventLoop
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QLocalSocket
  • tst_QMetaObject
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPointer
  • tst_QProcess
  • tst_QStateMachine
  • tst_QTcpSocket
  • tst_QThread
  • tst_QTimer
  • tst_QXmlInputSource
  • tst_Spdy
  • ...
returnCode;
executed 943 times by 188 tests: return returnCode;
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusThreading
  • tst_QEventLoop
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QLocalSocket
  • tst_QMetaObject
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPointer
  • tst_QProcess
  • tst_QStateMachine
  • tst_QTcpSocket
  • tst_QThread
  • tst_QTimer
  • tst_QXmlInputSource
  • tst_Spdy
  • ...
943
219}-
220void QThread::exit(int returnCode)-
221{-
222 QThreadPrivate * const d = d_func();-
223 QMutexLocker locker(&d->mutex);-
224 d->exited = true;-
225 d->returnCode = returnCode;-
226 d->data->quitNow = true;-
227 for (int i = 0; i < d->data->eventLoops.size()
i < d->data->eventLoops.size()Description
TRUEevaluated 947 times by 188 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusThreading
  • tst_QEventLoop
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QLocalSocket
  • tst_QMetaObject
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPointer
  • tst_QProcess
  • tst_QStateMachine
  • tst_QTcpSocket
  • tst_QThread
  • tst_QTimer
  • tst_QXmlInputSource
  • tst_Spdy
  • ...
FALSEevaluated 982 times by 188 tests
Evaluated by:
  • tst_QAbstractNetworkCache
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusThreading
  • tst_QEventLoop
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QLocalSocket
  • tst_QMetaObject
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPointer
  • tst_QProcess
  • tst_QStateMachine
  • tst_QTcpSocket
  • tst_QThread
  • tst_QTimer
  • tst_QXmlInputSource
  • tst_Spdy
  • ...
; ++i) {
947-982
228 QEventLoop *eventLoop = d->data->eventLoops.at(i);-
229 eventLoop->exit(returnCode);-
230 }
executed 947 times by 188 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusThreading
  • tst_QEventLoop
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QLocalSocket
  • tst_QMetaObject
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPointer
  • tst_QProcess
  • tst_QStateMachine
  • tst_QTcpSocket
  • tst_QThread
  • tst_QTimer
  • tst_QXmlInputSource
  • tst_Spdy
  • ...
947
231}
executed 982 times by 188 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusThreading
  • tst_QEventLoop
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QLocalSocket
  • tst_QMetaObject
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPointer
  • tst_QProcess
  • tst_QStateMachine
  • tst_QTcpSocket
  • tst_QThread
  • tst_QTimer
  • tst_QXmlInputSource
  • tst_Spdy
  • ...
982
232void QThread::quit()-
233{ exit();
executed 915 times by 186 tests: exit();
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QCoreApplication
  • tst_QDBusAbstractInterface
  • tst_QDBusThreading
  • tst_QEventLoop
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QMetaObject
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPointer
  • tst_QStateMachine
  • tst_QTcpSocket
  • tst_QThread
  • tst_QTimer
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_gestures - unknown status
  • tst_languagechange - unknown status
  • ...
}
915
234void QThread::run()-
235{-
236 (void) exec();-
237}
executed 649 times by 38 tests: end of block
Executed by:
  • tst_QAbstractNetworkCache
  • tst_QCoreApplication
  • tst_QEventLoop
  • tst_QGuiApplication
  • tst_QGuiEventLoop
  • tst_QHostInfo
  • tst_QHttpNetworkConnection
  • tst_QMetaObject
  • tst_QNetworkAccessManager_And_QProgressDialog
  • tst_QNetworkConfigurationManager
  • tst_QNetworkDiskCache
  • tst_QNetworkProxyFactory
  • tst_QNetworkReply
  • tst_QObject
  • tst_QPointer
  • tst_QStateMachine
  • tst_QThread
  • tst_QTimer
  • tst_QXmlInputSource
  • tst_Spdy
  • tst_networkselftest - unknown status
  • tst_qabstractnetworkcache - unknown status
  • tst_qftp - unknown status
  • tst_qhostinfo - unknown status
  • tst_qhttpnetworkconnection - unknown status
  • ...
649
238void QThread::setPriority(Priority priority)-
239{-
240 QThreadPrivate * const d = d_func();-
241 QMutexLocker locker(&d->mutex);-
242 if (!d->running
!d->runningDescription
TRUEevaluated 14 times by 1 test
Evaluated by:
  • tst_QThread
FALSEevaluated 14 times by 1 test
Evaluated by:
  • tst_QThread
) {
14
243 QMessageLogger(__FILE__, 594, __PRETTY_FUNCTION__).warning("QThread::setPriority: Cannot set priority, thread is not running");-
244 return;
executed 14 times by 1 test: return;
Executed by:
  • tst_QThread
14
245 }-
246 d->setPriority(priority);-
247}
executed 14 times by 1 test: end of block
Executed by:
  • tst_QThread
14
248QThread::Priority QThread::priority() const-
249{-
250 const QThreadPrivate * const d = d_func();-
251 QMutexLocker locker(&d->mutex);-
252-
253-
254 return
executed 33 times by 1 test: return Priority(d->priority & 0xffff);
Executed by:
  • tst_QThread
Priority(d->priority & 0xffff);
executed 33 times by 1 test: return Priority(d->priority & 0xffff);
Executed by:
  • tst_QThread
33
255}-
256int QThread::loopLevel() const-
257{-
258 const QThreadPrivate * const d = d_func();-
259 return
never executed: return d->data->eventLoops.size();
d->data->eventLoops.size();
never executed: return d->data->eventLoops.size();
0
260}-
261QAbstractEventDispatcher *QThread::eventDispatcher() const-
262{-
263 const QThreadPrivate * const d = d_func();-
264 return
executed 192 times by 132 tests: return d->data->eventDispatcher.load();
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCoreApplication
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • ...
d->data->eventDispatcher.load();
executed 192 times by 132 tests: return d->data->eventDispatcher.load();
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCoreApplication
  • tst_QDataWidgetMapper
  • tst_QDateTimeEdit
  • tst_QDesktopWidget
  • tst_QDial
  • ...
192
265}-
266void QThread::setEventDispatcher(QAbstractEventDispatcher *eventDispatcher)-
267{-
268 QThreadPrivate * const d = d_func();-
269 if (d->data->hasEventDispatcher()
d->data->hasEventDispatcher()Description
TRUEnever evaluated
FALSEevaluated 3 times by 3 tests
Evaluated by:
  • tst_QCoreApplication
  • tst_QGuiApplication
  • tst_QThread
) {
0-3
270 QMessageLogger(__FILE__, 788, __PRETTY_FUNCTION__).warning("QThread::setEventDispatcher: An event dispatcher has already been created for this thread");-
271 }
never executed: end of block
else {
0
272 eventDispatcher->moveToThread(this);-
273 if (eventDispatcher->thread() == this
eventDispatche...read() == thisDescription
TRUEevaluated 3 times by 3 tests
Evaluated by:
  • tst_QCoreApplication
  • tst_QGuiApplication
  • tst_QThread
FALSEnever evaluated
)
0-3
274 d->data->eventDispatcher = eventDispatcher;
executed 3 times by 3 tests: d->data->eventDispatcher = eventDispatcher;
Executed by:
  • tst_QCoreApplication
  • tst_QGuiApplication
  • tst_QThread
3
275 else-
276 QMessageLogger(__FILE__, 794, __PRETTY_FUNCTION__).warning("QThread::setEventDispatcher: Could not move event dispatcher to target thread");
never executed: QMessageLogger(__FILE__, 794, __PRETTY_FUNCTION__).warning("QThread::setEventDispatcher: Could not move event dispatcher to target thread");
0
277 }-
278}-
279-
280-
281-
282-
283bool QThread::event(QEvent *event)-
284{-
285 if (event->type() == QEvent::Quit
event->type() == QEvent::QuitDescription
TRUEevaluated 1 time by 1 test
Evaluated by:
  • tst_QThread
FALSEevaluated 3068 times by 322 tests
Evaluated by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • ...
) {
1-3068
286 quit();-
287 return
executed 1 time by 1 test: return true;
Executed by:
  • tst_QThread
true;
executed 1 time by 1 test: return true;
Executed by:
  • tst_QThread
1
288 } else {-
289 return
executed 3068 times by 322 tests: return QObject::event(event);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • ...
QObject::event(event);
executed 3068 times by 322 tests: return QObject::event(event);
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCompleter
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • ...
3068
290 }-
291}-
292void QThread::requestInterruption()-
293{-
294 QThreadPrivate * const d = d_func();-
295 QMutexLocker locker(&d->mutex);-
296 if (!d->running
!d->runningDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QThread
|| d->finished
d->finishedDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QThread
|| d->isInFinish
d->isInFinishDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QThread
)
0-1
297 return;
never executed: return;
0
298 if (this == QCoreApplicationPrivate::theMainThread
this == QCoreA...:theMainThreadDescription
TRUEnever evaluated
FALSEevaluated 1 time by 1 test
Evaluated by:
  • tst_QThread
) {
0-1
299 QMessageLogger(__FILE__, 830, __PRETTY_FUNCTION__).warning("QThread::requestInterruption has no effect on the main thread");-
300 return;
never executed: return;
0
301 }-
302 d->interruptionRequested = true;-
303}
executed 1 time by 1 test: end of block
Executed by:
  • tst_QThread
1
304bool QThread::isInterruptionRequested() const-
305{-
306 const QThreadPrivate * const d = d_func();-
307 QMutexLocker locker(&d->mutex);-
308 if (!d->running
!d->runningDescription
TRUEevaluated 2 times by 1 test
Evaluated by:
  • tst_QThread
FALSEevaluated 100 times by 1 test
Evaluated by:
  • tst_QThread
|| d->finished
d->finishedDescription
TRUEnever evaluated
FALSEevaluated 100 times by 1 test
Evaluated by:
  • tst_QThread
|| d->isInFinish
d->isInFinishDescription
TRUEnever evaluated
FALSEevaluated 100 times by 1 test
Evaluated by:
  • tst_QThread
)
0-100
309 return
executed 2 times by 1 test: return false;
Executed by:
  • tst_QThread
false;
executed 2 times by 1 test: return false;
Executed by:
  • tst_QThread
2
310 return
executed 100 times by 1 test: return d->interruptionRequested;
Executed by:
  • tst_QThread
d->interruptionRequested;
executed 100 times by 1 test: return d->interruptionRequested;
Executed by:
  • tst_QThread
100
311}-
312static void setThreadDoesNotRequireCoreApplication()-
313{-
314 QThreadData::current()->requiresCoreApplication = false;-
315}
executed 188 times by 161 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
188
316-
317QDaemonThread::QDaemonThread(QObject *parent)-
318 : QThread(parent)-
319{-
320-
321 connect(this, &QThread::started, setThreadDoesNotRequireCoreApplication);-
322}
executed 188 times by 161 tests: end of block
Executed by:
  • tst_Gestures
  • tst_ModelTest
  • tst_NetworkSelfTest
  • tst_QAbstractButton
  • tst_QAbstractItemView
  • tst_QAbstractNetworkCache
  • tst_QAbstractScrollArea
  • tst_QAbstractSlider
  • tst_QAbstractSpinBox
  • tst_QAccessibility
  • tst_QAction
  • tst_QActionGroup
  • tst_QApplication
  • tst_QBackingStore
  • tst_QBoxLayout
  • tst_QButtonGroup
  • tst_QCalendarWidget
  • tst_QCheckBox
  • tst_QColorDialog
  • tst_QColumnView
  • tst_QComboBox
  • tst_QCommandLinkButton
  • tst_QCoreApplication
  • tst_QDBusAbstractAdaptor
  • tst_QDBusAbstractInterface
  • ...
188
323-
324QDaemonThread::~QDaemonThread()-
325{-
326}-
327-
328-
Switch to Source codePreprocessed file

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