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

Method GetThreadId

cpp/src/platform/windows/LogImpl.cpp:342–351  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

340// Generate a string with formatted thread id
341//-----------------------------------------------------------------------------
342string LogImpl::GetThreadId
343(
344)
345{
346 char buf[20];
347 DWORD dwThread = ::GetCurrentThreadId();
348 sprintf_s( buf, sizeof(buf), "%04d ", dwThread );
349 string str = buf;
350 return str;
351}
352
353//-----------------------------------------------------------------------------
354// <LogImpl::SetLogFileName>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected