MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / for_each_debug_agent

Function for_each_debug_agent

src/runtime/context.cpp:22–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21 template <typename TT>
22 void for_each_debug_agent ( const TT & lmbd ) {
23 if ( g_envTotal > 0 && *daScriptEnvironment::g_threadLocalDebugAgent && (*daScriptEnvironment::g_threadLocalDebugAgent)->debugAgent ) {
24 lmbd ( (*daScriptEnvironment::g_threadLocalDebugAgent)->debugAgent );
25 }
26 std::lock_guard<std::recursive_mutex> guard(g_DebugAgentMutex);
27 for ( auto & it : g_DebugAgents ) {
28 if ( !it.second.debugAgent ) continue;
29 lmbd ( it.second.debugAgent );
30 }
31 }
32
33 void dapiReportContextState ( Context & ctx, const char * category, const char * name, const TypeInfo * info, void * data ) {
34 for_each_debug_agent([&](const DebugAgentPtr & pAgent){

Callers 15

dapiReportContextStateFunction · 0.85
dapiSimulateContextFunction · 0.85
dapiUserCommandFunction · 0.85
dapiOnBeforeGCFunction · 0.85
dapiOnAfterGCFunction · 0.85
~ContextMethod · 0.85
announceCreationMethod · 0.85
tickDebugAgentFunction · 0.85
collectDebugAgentStateFunction · 0.85
onBreakpointsResetFunction · 0.85
installDebugAgentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected