AnyPS5/core/libs/prx/libkernel/Pthread/Posix
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
..
Attr.cpp feat(libkernel): implement pthread_attr_setsolosched_np 2026-10-11 02:06:30 +02:00
Barrier.cpp feat(libkernel): accept PTHREAD_PROCESS_SHARED barrier attributes 2026-10-05 20:11:20 -05:00
Common.hpp feat(libkernel): implement pthread_getname_np 2026-10-08 15:23:30 -03:00
Cond.cpp feat(libc): add C locale conversion and sample runtime exports 2026-10-01 11:58:51 +03:00
Mutex.cpp feat(libkernel): implement pthread_mutexattr_setprioceiling and getprioceiling 2026-10-10 18:12:31 +00:00
Once.cpp fix(libkernel): drop the scePthreadOnce stub that shadowed the implementation 2026-09-27 11:26:58 -07:00
Rwlock.cpp feat(libkernel): implement pthread_rwlockattr_init and pthread_rwlockattr_destroy 2026-10-10 15:07:43 -04:00
Sem.cpp feat(libkernel): implement thread cancellation 2026-10-10 11:32:09 +02:00
Thread.cpp feat(libkernel): implement cpuset_getaffinity for the calling thread 2026-10-10 12:40:56 -04:00
Tsd.cpp feat(runtime): guest arena, kernel thread/sync/file APIs, crash hooks 2026-09-25 16:27:49 -07:00