Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
9 | static void report_error(int code, const char *where, const char *what) | - |
10 | { | - |
11 | if (code != 0TRUE | never evaluated | FALSE | evaluated 48966984 times by 1014 testsEvaluated 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
- ...
|
) | 0-48966984 |
12 | QMessageLogger(__FILE__, 75, __PRETTY_FUNCTION__).warning("%s: %s failure: %s", where, what, QString(qt_error_string(code)).toLocal8Bit().constData()); never executed: QMessageLogger(__FILE__, 75, __PRETTY_FUNCTION__).warning("%s: %s failure: %s", where, what, QString(qt_error_string(code)).toLocal8Bit().constData()); | 0 |
13 | }executed 48966982 times by 1014 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
- ...
| 48966982 |
14 | | - |
15 | void qt_initialize_pthread_cond(pthread_cond_t *cond, const char *where) | - |
16 | { | - |
17 | pthread_condattr_t condattr; | - |
18 | | - |
19 | pthread_condattr_init(&condattr); | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | if (QElapsedTimer::clockType() == QElapsedTimer::MonotonicClockTRUE | evaluated 2220431 times by 903 testsEvaluated 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
- ...
| FALSE | never evaluated |
) | 0-2220431 |
26 | pthread_condattr_setclock(&condattr, 1);executed 2220431 times by 903 tests: pthread_condattr_setclock(&condattr, 1); 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
- ...
| 2220431 |
27 | | - |
28 | | - |
29 | report_error(pthread_cond_init(cond, &condattr), where, "cv init"); | - |
30 | pthread_condattr_destroy(&condattr); | - |
31 | }executed 2220431 times by 903 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
- ...
| 2220431 |
32 | | - |
33 | void qt_abstime_for_timeout(timespec *ts, int timeout) | - |
34 | { | - |
35 | *ts = qt_gettime(); | - |
36 | | - |
37 | | - |
38 | ts->tv_sec += timeout / 1000; | - |
39 | ts->tv_nsec += timeout % 1000 * static_cast<unsigned long long>(1000ULL) * 1000; | - |
40 | normalizedTimespec(*ts); | - |
41 | }executed 3162873 times by 397 tests: end of block Executed by:- tst_Collections
- 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_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- ...
| 3162873 |
42 | | - |
43 | class QWaitConditionPrivate { | - |
44 | public: | - |
45 | pthread_mutex_t mutex; | - |
46 | pthread_cond_t cond; | - |
47 | int waiters; | - |
48 | int wakeups; | - |
49 | | - |
50 | int wait_relative(unsigned long time) | - |
51 | { | - |
52 | timespec ti; | - |
53 | | - |
54 | | - |
55 | | - |
56 | | - |
57 | | - |
58 | | - |
59 | | - |
60 | qt_abstime_for_timeout(&ti, time); | - |
61 | returnexecuted 3162873 times by 397 tests: return pthread_cond_timedwait(&cond, &mutex, &ti); Executed by:- tst_Collections
- 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_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- ...
pthread_cond_timedwait(&cond, &mutex, &ti);executed 3162873 times by 397 tests: return pthread_cond_timedwait(&cond, &mutex, &ti); Executed by:- tst_Collections
- 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_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- ...
| 3162873 |
62 | } | - |
63 | | - |
64 | bool wait(unsigned long time) | - |
65 | { | - |
66 | int code; | - |
67 | for(;;) { | - |
68 | if (time != (9223372036854775807L * 2UL + 1UL)TRUE | evaluated 3162873 times by 397 testsEvaluated by:- tst_Collections
- 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_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- ...
| FALSE | evaluated 806882 times by 713 testsEvaluated 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
- ...
|
) { | 806882-3162873 |
69 | code = wait_relative(time); | - |
70 | }executed 3162850 times by 461 tests: end of block Executed by:- tst_Collections
- tst_Gestures
- tst_LargeFile
- tst_ModelTest
- tst_NetworkSelfTest
- tst_PlatformSocketEngine
- tst_QAbstractAnimation
- tst_QAbstractButton
- tst_QAbstractFileEngine
- tst_QAbstractItemModel
- tst_QAbstractItemView
- tst_QAbstractNetworkCache
- tst_QAbstractPrintDialog
- tst_QAbstractScrollArea
- tst_QAbstractSlider
- tst_QAbstractSpinBox
- tst_QAbstractTextDocumentLayout
- tst_QAccessibility
- tst_QAction
- tst_QActionGroup
- tst_QAlgorithms
- tst_QApplication
- tst_QArrayData
- tst_QArrayData_StrictIterators
- tst_QAtomicInt
- ...
else { | 3162850 |
71 | code = pthread_cond_wait(&cond, &mutex); | - |
72 | }executed 806846 times by 1013 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
- ...
| 806846 |
73 | if (code == 0TRUE | evaluated 3969356 times by 1013 testsEvaluated 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
- ...
| FALSE | evaluated 340 times by 10 testsEvaluated by:- tst_QFtp
- tst_QMutex
- tst_QNetworkReply
- tst_QProcess
- tst_QReadWriteLock
- tst_QSemaphore
- tst_QSocks5SocketEngine
- tst_QThread
- tst_QThreadPool
- tst_QWaitCondition
|
&& wakeups == 0TRUE | never evaluated | FALSE | evaluated 3969356 times by 1013 testsEvaluated 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
- ...
|
) { | 0-3969356 |
74 | | - |
75 | | - |
76 | | - |
77 | continue; never executed: continue; | 0 |
78 | } | - |
79 | break;executed 3969696 times by 1013 tests: break; 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
- ...
| 3969696 |
80 | } | - |
81 | | - |
82 | ((!(waiters > 0)) ? qt_assert_x("QWaitCondition::wait", "internal error (waiters)",__FILE__,154) : qt_noop()); | - |
83 | --waiters; | - |
84 | if (code == 0TRUE | evaluated 3969356 times by 1013 testsEvaluated 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
- ...
| FALSE | evaluated 340 times by 10 testsEvaluated by:- tst_QFtp
- tst_QMutex
- tst_QNetworkReply
- tst_QProcess
- tst_QReadWriteLock
- tst_QSemaphore
- tst_QSocks5SocketEngine
- tst_QThread
- tst_QThreadPool
- tst_QWaitCondition
|
) { | 340-3969356 |
85 | ((!(wakeups > 0)) ? qt_assert_x("QWaitCondition::wait", "internal error (wakeups)",__FILE__,157) : qt_noop()); | - |
86 | --wakeups; | - |
87 | }executed 3969356 times by 1013 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
- ...
| 3969356 |
88 | report_error(pthread_mutex_unlock(&mutex), "QWaitCondition::wait()", "mutex unlock"); | - |
89 | | - |
90 | if (codeTRUE | evaluated 340 times by 10 testsEvaluated by:- tst_QFtp
- tst_QMutex
- tst_QNetworkReply
- tst_QProcess
- tst_QReadWriteLock
- tst_QSemaphore
- tst_QSocks5SocketEngine
- tst_QThread
- tst_QThreadPool
- tst_QWaitCondition
| FALSE | evaluated 3969356 times by 1013 testsEvaluated 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
- ...
|
&& code != 110TRUE | never evaluated | FALSE | evaluated 340 times by 10 testsEvaluated by:- tst_QFtp
- tst_QMutex
- tst_QNetworkReply
- tst_QProcess
- tst_QReadWriteLock
- tst_QSemaphore
- tst_QSocks5SocketEngine
- tst_QThread
- tst_QThreadPool
- tst_QWaitCondition
|
) | 0-3969356 |
91 | report_error(code, "QWaitCondition::wait()", "cv wait"); never executed: report_error(code, "QWaitCondition::wait()", "cv wait"); | 0 |
92 | | - |
93 | returnexecuted 3969696 times by 1013 tests: return (code == 0); 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
- ...
(code == 0);executed 3969696 times by 1013 tests: return (code == 0); 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
- ...
| 3969696 |
94 | } | - |
95 | }; | - |
96 | | - |
97 | | - |
98 | QWaitCondition::QWaitCondition() | - |
99 | { | - |
100 | d = new QWaitConditionPrivate; | - |
101 | report_error(pthread_mutex_init(&d->mutex, __null), "QWaitCondition", "mutex init"); | - |
102 | qt_initialize_pthread_cond(&d->cond, "QWaitCondition"); | - |
103 | d->waiters = d->wakeups = 0; | - |
104 | }executed 2220431 times by 903 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
- ...
| 2220431 |
105 | | - |
106 | | - |
107 | QWaitCondition::~QWaitCondition() | - |
108 | { | - |
109 | report_error(pthread_cond_destroy(&d->cond), "QWaitCondition", "cv destroy"); | - |
110 | report_error(pthread_mutex_destroy(&d->mutex), "QWaitCondition", "mutex destroy"); | - |
111 | delete d; | - |
112 | }executed 2220732 times by 722 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_QAtomicInt
- tst_QBackingStore
- tst_QBoxLayout
- tst_QButtonGroup
- tst_QCalendarWidget
- tst_QCheckBox
- tst_QColorDialog
- tst_QColumnView
- tst_QComboBox
- tst_QCommandLinkButton
- tst_QCompleter
- tst_QCoreApplication
- ...
| 2220732 |
113 | | - |
114 | void QWaitCondition::wakeOne() | - |
115 | { | - |
116 | report_error(pthread_mutex_lock(&d->mutex), "QWaitCondition::wakeOne()", "mutex lock"); | - |
117 | d->wakeups = qMin(d->wakeups + 1, d->waiters); | - |
118 | report_error(pthread_cond_signal(&d->cond), "QWaitCondition::wakeOne()", "cv signal"); | - |
119 | report_error(pthread_mutex_unlock(&d->mutex), "QWaitCondition::wakeOne()", "mutex unlock"); | - |
120 | }executed 2307344 times by 23 tests: end of block Executed by:- tst_QDnsLookup
- tst_QEventLoop
- tst_QFtp
- tst_QFutureWatcher
- tst_QGuiEventLoop
- tst_QHostInfo
- tst_QLockFile
- tst_QMetaType
- tst_QMutex
- tst_QNetworkReply
- tst_QObject
- tst_QReadWriteLock
- tst_QSslSocket
- tst_QThread
- tst_QThreadPool
- tst_QUdpSocket
- tst_QWaitCondition
- tst_QtConcurrentFilter
- tst_QtConcurrentIterateKernel
- tst_QtConcurrentMap
- tst_QtConcurrentRun
- tst_QtConcurrentThreadEngine
- tst_Spdy
| 2307344 |
121 | | - |
122 | void QWaitCondition::wakeAll() | - |
123 | { | - |
124 | report_error(pthread_mutex_lock(&d->mutex), "QWaitCondition::wakeAll()", "mutex lock"); | - |
125 | d->wakeups = d->waiters; | - |
126 | report_error(pthread_cond_broadcast(&d->cond), "QWaitCondition::wakeAll()", "cv broadcast"); | - |
127 | report_error(pthread_mutex_unlock(&d->mutex), "QWaitCondition::wakeAll()", "mutex unlock"); | - |
128 | }executed 8407725 times by 1013 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
- ...
| 8407725 |
129 | | - |
130 | bool QWaitCondition::wait(QMutex *mutex, unsigned long time) | - |
131 | { | - |
132 | if (! mutexTRUE | never evaluated | FALSE | evaluated 3969481 times by 713 testsEvaluated 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
- ...
|
) | 0-3969481 |
133 | return never executed: return false; false;never executed: return false; | 0 |
134 | if (mutex->isRecursive()TRUE | never evaluated | FALSE | evaluated 3969481 times by 713 testsEvaluated 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
- ...
|
) { | 0-3969481 |
135 | QMessageLogger(__FILE__, 207, __PRETTY_FUNCTION__).warning("QWaitCondition: cannot wait on recursive mutexes"); | - |
136 | return never executed: return false; false;never executed: return false; | 0 |
137 | } | - |
138 | | - |
139 | report_error(pthread_mutex_lock(&d->mutex), "QWaitCondition::wait()", "mutex lock"); | - |
140 | ++d->waiters; | - |
141 | mutex->unlock(); | - |
142 | | - |
143 | bool returnValue = d->wait(time); | - |
144 | | - |
145 | mutex->lock(); | - |
146 | | - |
147 | returnexecuted 3969422 times by 1013 tests: return returnValue; 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
- ...
returnValue;executed 3969422 times by 1013 tests: return returnValue; 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
- ...
| 3969422 |
148 | } | - |
149 | | - |
150 | bool QWaitCondition::wait(QReadWriteLock *readWriteLock, unsigned long time) | - |
151 | { | - |
152 | if (!readWriteLockTRUE | never evaluated | FALSE | evaluated 274 times by 1 test |
) | 0-274 |
153 | return never executed: return false; false;never executed: return false; | 0 |
154 | auto previousState = readWriteLock->stateForWaitCondition(); | - |
155 | if (previousState == QReadWriteLock::UnlockedTRUE | never evaluated | FALSE | evaluated 274 times by 1 test |
) | 0-274 |
156 | return never executed: return false; false;never executed: return false; | 0 |
157 | if (previousState == QReadWriteLock::RecursivelyLockedTRUE | never evaluated | FALSE | evaluated 274 times by 1 test |
) { | 0-274 |
158 | QMessageLogger(__FILE__, 230, __PRETTY_FUNCTION__).warning("QWaitCondition: cannot wait on QReadWriteLocks with recursive lockForWrite()"); | - |
159 | return never executed: return false; false;never executed: return false; | 0 |
160 | } | - |
161 | | - |
162 | report_error(pthread_mutex_lock(&d->mutex), "QWaitCondition::wait()", "mutex lock"); | - |
163 | ++d->waiters; | - |
164 | | - |
165 | readWriteLock->unlock(); | - |
166 | | - |
167 | bool returnValue = d->wait(time); | - |
168 | | - |
169 | if (previousState == QReadWriteLock::LockedForWriteTRUE | evaluated 231 times by 1 test | FALSE | evaluated 43 times by 1 test |
) | 43-231 |
170 | readWriteLock->lockForWrite();executed 231 times by 1 test: readWriteLock->lockForWrite(); | 231 |
171 | else | - |
172 | readWriteLock->lockForRead();executed 43 times by 1 test: readWriteLock->lockForRead(); | 43 |
173 | | - |
174 | returnexecuted 274 times by 1 test: return returnValue; returnValue;executed 274 times by 1 test: return returnValue; | 274 |
175 | } | - |
176 | | - |
177 | | - |
| | |