[H3] Thread pool never receives its task list - multithreading is a no-op #21
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
indigocode/igasset-viewer-react#21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
File:
wasm/src/bindings.cc:50-55create_thread_pooltakesexec_task_listbut never uses it:ThreadPool::add_task_listis bound (bindings.cc:72) but never called from JS —IgviewerContext.tsx:227just doesCreateThreadPool(execTaskList).Impact: in
"multi"mode the pool spins up workers that pull from no task list, and all exec work still runs on the main thread via the rAF pump (IgviewerContext.tsx:246). The MT build pays the full COOP/COEP/SharedArrayBuffer cost for zero parallelism.Fix: wire
exec_task_listinto the pool (e.g. calladd_task_list(exec_task_list)insidecreate_thread_pool, or from the JS init).Filed by an automated AI code review (manual proof-of-concept run). Code locations reference the
various-cleanupbranch.Fixed in sessamekesh/igasset-viewer-react#40