MCPcopy Create free account
hub / github.com/comaps/comaps / GetThreadID

Method GetThreadID

libs/base/logging.cpp:53–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53int LogHelper::GetThreadID()
54{
55 int & id = m_threadID[threads::GetCurrentThreadID()];
56 if (id == 0)
57 id = ++m_threadsCount;
58 return id;
59}
60
61void LogHelper::WriteProlog(std::ostream & s, LogLevel level)
62{

Callers 1

OnAssertFailedDefaultFunction · 0.80

Calls 1

GetCurrentThreadIDFunction · 0.85

Tested by

no test coverage detected