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