MCPcopy Create free account
hub / github.com/chenshuo/muduo / numThreads

Method numThreads

muduo/base/ProcessInfo.cc:225–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225int ProcessInfo::numThreads()
226{
227 int result = 0;
228 string status = procStatus();
229 size_t pos = status.find("Threads:");
230 if (pos != string::npos)
231 {
232 result = ::atoi(status.c_str() + pos + 8);
233 }
234 return result;
235}
236
237std::vector<pid_t> ProcessInfo::threads()
238{

Callers

nothing calls this directly

Calls 1

c_strMethod · 0.80

Tested by

no test coverage detected