Absolute File Name: | /home/qt/qt5_coco/qt5/qtbase/src/corelib/kernel/qsystemsemaphore_unix.cpp |
Switch to Source code | Preprocessed file |
Line | Source | Count |
---|---|---|
1 | - | |
2 | - | |
3 | - | |
4 | - | |
5 | - | |
6 | QSystemSemaphorePrivate::QSystemSemaphorePrivate() : | - |
7 | - | |
8 | unix_key(-1), semaphore(-1), createdFile(false), | - |
9 | - | |
10 | - | |
11 | - | |
12 | createdSemaphore(false), error(QSystemSemaphore::NoError) | - |
13 | { | - |
14 | } executed 3735 times by 5 tests: end of block Executed by:
| 3735 |
15 | - | |
16 | void QSystemSemaphorePrivate::setErrorString(const QString &function) | - |
17 | { | - |
18 | - | |
19 | switch ((*__errno_location ())) { | - |
20 | case never executed: 1:case 1: never executed: case 1: | 0 |
21 | case never executed: 13:case 13: never executed: case 13: | 0 |
22 | errorString = QCoreApplication::translate("QSystemSemaphore", "%1: permission denied").arg(function); | - |
23 | error = QSystemSemaphore::PermissionDenied; | - |
24 | break; never executed: break; | 0 |
25 | case never executed: 17:case 17: never executed: case 17: | 0 |
26 | errorString = QCoreApplication::translate("QSystemSemaphore", "%1: already exists").arg(function); | - |
27 | error = QSystemSemaphore::AlreadyExists; | - |
28 | break; never executed: break; | 0 |
29 | case never executed: 2:case 2: never executed: case 2: | 0 |
30 | errorString = QCoreApplication::translate("QSystemSemaphore", "%1: does not exist").arg(function); | - |
31 | error = QSystemSemaphore::NotFound; | - |
32 | break; never executed: break; | 0 |
33 | case never executed: 34:case 34: never executed: case 34: | 0 |
34 | case executed 2 times by 1 test: 28:case 28: Executed by:
executed 2 times by 1 test: case 28: Executed by:
| 2 |
35 | errorString = QCoreApplication::translate("QSystemSemaphore", "%1: out of resources").arg(function); | - |
36 | error = QSystemSemaphore::OutOfResources; | - |
37 | break; executed 2 times by 1 test: break; Executed by:
| 2 |
38 | default never executed: :default: never executed: default: | 0 |
39 | errorString = QCoreApplication::translate("QSystemSemaphore", "%1: unknown error %2").arg(function).arg((*__errno_location ())); | - |
40 | error = QSystemSemaphore::UnknownError; | - |
41 | - | |
42 | - | |
43 | - | |
44 | } never executed: end of block | 0 |
45 | } | - |
46 | - | |
47 | - | |
Switch to Source code | Preprocessed file |