New thread_self=42 syscall backs runtime.Thread.getCurrentId (the calling thread's kernel task id). thread-test gains an id mode: two workers read getCurrentId and the main thread confirms all three ids are non-zero and distinct. Per-thread threadlocal TLS is deferred by design (no consumer; it would need context-switched fs.base for an unused feature), as are RwLock/WaitGroup. Marks the threading feature built (M1-M6): threading.md + docs/README.md status updated, all thread-* cases wired into qemu_test.py. Gate thread-id PASS; full suite green: 21/21 (thread-spawn/join/futex/mutex/id, aspace-refcount, + 15 guardrail cases), zig build clean, zig build test green. |
||
|---|---|---|
| .. | ||
| block.zig | ||
| device.zig | ||
| display.zig | ||
| dma.zig | ||
| fs.zig | ||
| heap.zig | ||
| input.zig | ||
| ipc.zig | ||
| process.zig | ||
| root.zig | ||
| runtime.zig | ||
| service.zig | ||
| shm.zig | ||
| start.zig | ||
| system-call.zig | ||
| system.zig | ||
| thread.zig | ||
| time.zig | ||
| usb.zig | ||
| user.ld | ||