MCPcopy Create free account
hub / github.com/dds-bridge/dds / Print

Method Print

library/src/system/thread_mgr.cpp:127–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125
126
127void 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected