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

Method GetThreadId

cpp/src/platform/winRT/LogImpl.cpp:312–321  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

310// Generate a string with formatted thread id
311//-----------------------------------------------------------------------------
312string LogImpl::GetThreadId
313(
314)
315{
316 char buf[20];
317 DWORD dwThread = ::GetCurrentThreadId();
318 sprintf_s( buf, sizeof(buf), "%04d ", dwThread );
319 string str = buf;
320 return str;
321}
322
323//-----------------------------------------------------------------------------
324// <LogImpl::SetLogFileName>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected