MCPcopy Create free account
hub / github.com/bwapi/bwapi / CheckRegisteredThreads

Function CheckRegisteredThreads

bwapi/BWAPI/Source/Thread.cpp:53–62  ·  view source on GitHub ↗

Function to check if a debugger is present, and then set the names of all registered threads if it is so

Source from the content-addressed store, hash-verified

51
52// Function to check if a debugger is present, and then set the names of all registered threads if it is so
53void 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}

Callers 1

PersistentPatchFunction · 0.85

Calls 1

SetThreadNameFunction · 0.85

Tested by

no test coverage detected