MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / GetThreadId

Method GetThreadId

cpp/src/platform/unix/LogImpl.cpp:311–319  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Generate a string with formatted thread id -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

309// Generate a string with formatted thread id
310//-----------------------------------------------------------------------------
311string LogImpl::GetThreadId
312(
313)
314{
315 char buf[20];
316 snprintf( buf, sizeof(buf), "%08lx ", (long unsigned int)pthread_self() );
317 string str = buf;
318 return str;
319}
320
321//-----------------------------------------------------------------------------
322// <LogImpl::SetLogFileName>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected