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:404010
partially evaluated: !thisGlobalStatic.pointer.testAndSetOrdered(0, x)
TRUEFALSE
no
Evaluation Count:0
yes
Evaluation Count:115
evaluated: !thisGlobalStatic.pointer.load()
TRUEFALSE
yes
Evaluation Count:116
yes
Evaluation Count:403892
evaluated: !thisGlobalStatic.destroyed
TRUEFALSE
yes
Evaluation Count:115
yes
Evaluation Count:1
0-404010
5 -
6QCoreGlobalData::QCoreGlobalData() -
7 : codecForLocale(0) -
8{ -
9}
executed: }
Execution Count:115
115
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:457
yes
Evaluation Count:316
316-457
15 delete *it;
executed: delete *it;
Execution Count:457
457
16}
executed: }
Execution Count:316
316
17 -
18QCoreGlobalData *QCoreGlobalData::instance() -
19{ -
20 return globalInstance();
executed: return globalInstance();
Execution Count:404008
404008
21} -
22 -
23 -
24 -
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial