Commit Graph
2 Commits
Author SHA1 Message Date
milescovielloandClaude Opus 5.5 050c52c1d2 test(libkernel): hand off turns in the scePthreadYield test on one pinned host CPU
The worker could finish its loop before scePthreadCreate returned or before
the first workerDone load, so the measured loop could be skipped with a no-op
yield. scePthreadSetaffinity also only records the guest mask, so the two
threads were never on one CPU. Both threads now pin their host threads to the
CPU main starts on; the worker reports ready and waits for start, and the
measured phase passes 64 turns back and forth, so neither thread can take its
next turn until the other has run on that CPU. The test is registered on
Windows and Linux, which have a thread affinity call.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-02 13:48:59 -05:00
milescovielloandClaude Opus 5.5 ea081cf207 test(libkernel): cover scePthreadYield letting a thread on the same CPU run
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-02 12:40:20 -05:00