Function to check if a debugger is present, and then set the names of all registered threads if it is so
| 51 | |
| 52 | // Function to check if a debugger is present, and then set the names of all registered threads if it is so |
| 53 | void CheckRegisteredThreads() |
| 54 | { |
| 55 | // Don't do anything if debugger is not present |
| 56 | if ( !IsDebuggerPresent() ) |
| 57 | return; |
| 58 | |
| 59 | // iterate all registered thread names and set them for the debugger |
| 60 | for ( auto &e : threadNames) |
| 61 | SetThreadName(e.second, e.first); |
| 62 | } |
no test coverage detected