thread HealthMonitor::monitor_loop — monitor_loop (src/mcp/health_monitor.cpp)

Overview · 5 steps, 2 lanes

  1. step 2 · src/mcp/health_monitor.cpp, src/mcp/external_client.cpp
  2. step 3 · src/mcp/health_monitor.cpp
  3. step 5 · src/mcp/health_monitor.cpp
  4. step 5 · src/mcp/health_monitor.cpp
thread startthread startthread startthread startsrc/mcp/health_monitor.cppsrc/mcp/health_monitor.cppsrc/mcp/health_monitor.cppsrc/mcp/health_monitor.cppsrc/mcp/external_client.cppsrc/mcp/external_client.cppsrc/mcp/external_client.cppsrc/mcp/external_client.cpploop (line 146)looploop (line 150)loopopt (line 151)optopt (line 180)optmonitor_loop1. monitor_loop → check_server1check_server2. check_server → is_connected2is_connected3–5. check_server → post_event3post_event +2 more
All 5 steps
#callercalleewhat it doesrequirementsframescall site
1monitor_loopcheck_serverCheck one server and handle state transitions.REQ-MCP-025loop (line 146), loop (line 150), if (line 151)src/mcp/health_monitor.cpp:152
2check_serveris_connectedCheck connection state.——src/mcp/health_monitor.cpp:178
3check_serverpost_eventPost a status change event to the queue.REQ-MCP-025if (line 180)src/mcp/health_monitor.cpp:185
4check_serverattempt_reconnectAttempt reconnection for a single server.REQ-MCP-025if (line 180)src/mcp/health_monitor.cpp:187
5check_serverattempt_reconnectAttempt reconnection for a single server.REQ-MCP-025if (line 192)src/mcp/health_monitor.cpp:193

Functions

5 functions

This diagram as Mermaid · PlantUML · Graphviz DOT

Quick views

5 functions, each with its quick view