kernel/qcoreglobaldata.cpp

Switch to Source codePreprocessed file
LineSource CodeCoverage
1 -
2 -
3 -
4static QCoreGlobalData *globalInstance() { static QGlobalStatic<QCoreGlobalData > thisGlobalStatic = { { (0) }, false }; if (!thisGlobalStatic.pointer.load() && !thisGlobalStatic.destroyed) { QCoreGlobalData *x = new QCoreGlobalData; if (!thisGlobalStatic.pointer.testAndSetOrdered(0, x)) delete x; else static QGlobalStaticDeleter<QCoreGlobalData > cleanup(thisGlobalStatic); } return thisGlobalStatic.pointer.load(); }
never executed: delete x;
executed: return thisGlobalStatic.pointer.load();
Execution Count:498898
partially evaluated: !thisGlobalStatic.pointer.testAndSetOrdered(0, x)
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:116
evaluated: !thisGlobalStatic.pointer.load()
TRUEFALSE
yes
Evaluation Count:117
yes
Evaluation Count:498779
evaluated: !thisGlobalStatic.destroyed
TRUEFALSE
yes
Evaluation Count:116
yes
Evaluation Count:1
0-498898
5 -
6QCoreGlobalData::QCoreGlobalData() -
7 : codecForLocale(0) -
8{ -
9}
executed: }
Execution Count:116
116
10 -
11QCoreGlobalData::~QCoreGlobalData() -
12{ -
13 codecForLocale = 0; -
14 for (QList<QTextCodec *>::const_iterator it = allCodecs.constBegin(); it != allCodecs.constEnd(); ++it)
evaluated: it != allCodecs.constEnd()
TRUEFALSE
yes
Evaluation Count:459
yes
Evaluation Count:318
318-459
15 delete *it;
executed: delete *it;
Execution Count:459
459
16}
executed: }
Execution Count:318
318
17 -
18QCoreGlobalData *QCoreGlobalData::instance() -
19{ -
20 return globalInstance();
executed: return globalInstance();
Execution Count:498897
498897
21} -
22 -
23 -
24 -
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial