| 125 | |
| 126 | |
| 127 | void ThreadMgr::Print( |
| 128 | const string& fname, |
| 129 | const string& tag) const |
| 130 | { |
| 131 | mtxPrint.lock(); |
| 132 | ofstream fo; |
| 133 | fo.open(fname, std::ios_base::app); |
| 134 | |
| 135 | fo << tag << |
| 136 | ": Real threads occupied (out of " << numRealThreads << "):\n"; |
| 137 | for (unsigned t = 0; t < numRealThreads; t++) |
| 138 | { |
| 139 | if (realThreads[t]) |
| 140 | fo << t << endl; |
| 141 | } |
| 142 | fo << endl; |
| 143 | |
| 144 | fo << "Machine threads overview:\n"; |
| 145 | for (unsigned t = 0; t < numMachineThreads; t++) |
| 146 | { |
| 147 | if (machineThreads[t] != -1) |
| 148 | { |
| 149 | fo << setw(4) << left << t << machineThreads[t] << endl; |
| 150 | } |
| 151 | } |
| 152 | fo << endl; |
| 153 | fo.close(); |
| 154 | mtxPrint.unlock(); |
| 155 | } |
| 156 |
nothing calls this directly
no outgoing calls
no test coverage detected