Commit Graph
5 Commits
Author SHA1 Message Date
waozi 37a64372a6 Add target-aware package application APIs 2026-11-13 04:20:48 -03:00
waozi 5e49140f67 Poll std/thread_linux threads on macOS, which has no pthread_tryjoin_np
ThreadRun marks the record once the notification has returned, and on
macOS ThreadFinished joins only after that, so a join waits for nothing
but the thread's exit and thread-local destructors. Linux and Android
keep their nonblocking joins. Native C builds define POSIX_THREADS on
macOS too, so any program importing std/thread_linux failed to link
there. modules.html also picks up std/resample's ARMv7 summary.
2026-11-05 22:41:35 -03:00
waozi 39b1fdf7a5 Keep completion polling nonblocking through notification and TLS cleanup 2026-10-09 10:52:13 -03:00
waozi 64cc8432b5 Notify event waiters after background thread completion 2026-10-05 21:18:21 -03:00
waozi 86be603c1b Add background threads that a frame loop can poll
std/thread_linux.zi starts a procedure on a pthread and reports without
waiting whether it has finished, joining it the first time it has, so a
frame loop can keep drawing while a request runs. The worker marks itself
done under a mutex rather than relying on pthread_tryjoin_np, which
Android's C library lacks, and the thread handle and mutex storage are
sized for both glibc and bionic.
2026-09-30 01:13:46 -03:00