sceKernelGetCurrentCpu returned the raw host CPU index. Guest affinities are bookkeeping only and sceKernelGetAvailableCpumask advertises CPUs 0 to 12, so on a host with more than 13 logical CPUs a title could get 13 or higher, and a thread pinned to one CPU could get another one. The host index now selects a CPU of the calling thread's affinity clipped to the available mask, so the result is always an advertised CPU and a thread pinned to one CPU reports that CPU. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HeC9bA3n74TzJRYv9AgBE8 |
||
|---|---|---|
| .. | ||
| Cond.hpp | ||
| Mutex.hpp | ||
| Pthread.hpp | ||
| Rwlock.hpp | ||
| ThreadLifecycle.hpp | ||