AnyPS5/core/libs/prx/libkernel/Pthread
David 064f5ca825 feat(libkernel): implement pthread_attr_setsolosched_np
The POSIX alias takes (attr, int), returns EINVAL (22) for a null or
uninitialized attribute like the other pthread_attr setters, and
stores the value through scePthreadAttrSetsolosched, returning its
result in errno form. The signature and the stored int follow the SCE
twin in KytyPS5 and sharpemu; PS5PCEM implements the alias the same
way. The value is not applied to scheduling, recorded in TechnicalDebt.

Returnal (PPSA01285 v03.000.005) stops on it after eager binding
(#2872, #1155):

    what(): pthread_attr_setsolosched_np_nid_postfix not implemented

LEGO Horizon Adventures (PPSA14632, #734) and Palworld (PPSA23126,
#2598) import it.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-11 02:06:30 +02:00
..
Posix feat(libkernel): implement pthread_attr_setsolosched_np 2026-10-11 02:06:30 +02:00
include fix(libkernel): return EBUSY when destroying locked rwlock 2026-10-11 01:37:26 +02:00
src fix(libkernel): return EPERM or EINVAL when a condition wait gets a mutex the caller does not hold 2026-10-11 01:53:12 +02:00