nx_thread_pool_test.nx
buildroot/runtime/nx_thread_pool_test.nx
about
nx_thread_pool_test.nx -- end-to-end pool stress. Submit
TOTAL_TASKS tasks each bumping a shared atomic counter; wait
for completion; verify counter == TOTAL_TASKS exactly.
Two passes:
T1: small pool (hw workers) + many tasks; verifies fan-out
T2: re-use the same pool for another batch; verifies pool
liveness across multiple submit waves
dependencies 6 imports · 0 importers
imports: nx_kernel_v2.nxnx_log.nxnx_atom.nxnx_thread.nxnx_thread_pool.nxnx_hw.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 17 | const TOTAL_TASKS_PER_WAVE: i64 = 500 |
functions
| 21 | func bump_counter_task(ctx: i64) -> i64 calls 1: nx_atom_faa_i64 |
| 27 | func main() -> nx_exit |