----------------------------------------------------------------------------- Generate a string with formatted thread id -----------------------------------------------------------------------------
| 340 | // Generate a string with formatted thread id |
| 341 | //----------------------------------------------------------------------------- |
| 342 | string 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> |
nothing calls this directly
no outgoing calls
no test coverage detected