code wiki / (root) / nx_thread_kat.nx

nx_thread_kat.nx

buildroot/runtime/nx_thread_kat.nx

951 B25 linesdepth 2pulls 2 transitivereach 0 importersview sourcekind tooltopic thread
docsdependenciesstructsconstsfunctions

about

THE THREADING TEST: __thread_clone with a REAL function address (now that &fn works). A worker thread writes 42 to shared memory (CLONE_VM); main spins until it sees it. If the thread actually RUNS (no NULL-entry SIGSEGV), prints THREAD_RAN 42. This is the direct test of the codec-unlock: a second thread executing.

dependencies 1 imports · 0 importers

nx_syscalls.nx nx_thread_kat.nx

imports: nx_syscalls.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main sys_mmap sys_write sys_exit

structs

none

consts

none

functions

6func t_worker(ctx: *u8) -> i64
12func main() -> i64