cd2f95ff2a29dfe132d5943998c0f650202c7f5e
1. ThreadPool counter fix:
- The outer catch block in WorkerThread::Run() was only updating
the per-worker counter, not the pool's totalCompleted
- This caused GetInFlightTasks() to return permanently inflated
values when exceptions occurred (explaining "1 in-flight, 0 active
workers" with all tasks done)
- Now properly updates pool counter in outer catch
2. Improved stuck task detection:
- LogStuckTasks now always outputs a summary showing how many tasks
are tracked and how many are stuck
- This helps diagnose whether tasks are being registered properly
Expected fix: The "1 in-flight, 0 active workers" issue should no longer
occur if the root cause was exception handling leaving the counter in
an inconsistent state.
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%