9b830878a9e0511347810ae8b31a99fc16e6b03f
When ThreadPool wait times out (>2s), we now log which specific bot(s) are stuck. This helps identify: - Deadlocks within bot update tasks - Infinite loops in AI subsystems - Slow operations (pathfinding, database, etc.) Implementation: - Added thread-safe registry tracking executing bot tasks - RAII guard ensures tasks are always unregistered on exit - LogStuckTasks() called at 2s warning and 10s timeout - Logs bot name and GUID with execution time Example output: STUCK TASK DETECTED: Bot Anderenz (GUID: Player-XXX) has been executing for 5432ms! Co-Authored-By: Claude Opus 4.5 <[email protected]> Signed-off-by: luis <[email protected]>
WowCommunityProject
Blizzlike WowCommunity project
Languages
C++
89.3%
C
10.1%
CMake
0.4%