feat(libkernel): implement pthread_attr_setsolosched_np #2658
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2658"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by KaavayGupta on 2026-10-10T10:16:01Z.
What
In
core/libs/prx/libkernel/Pthread/src/Attr.cpp, solo-scheduling attribute storage (_solosched) and its native SCE getter/setter (scePthreadAttrGetsolosched/scePthreadAttrSetsolosched) were already implemented. However, the POSIX aliaspthread_attr_setsolosched_npincore/libs/prx/libkernel/Pthread/Posix/Attr.cppwas only added as a parameterless throwing stub in commite91fe0f0to unblock dynamic loading for LEGO Horizon Adventures (PPSA14632).This change implements
pthread_attr_setsolosched_npwith its proper signature(PthreadAttr* attr, int solosched), validates the attribute handle usingValid(attr)(returningGUEST_EINVALon invalid handles), and sets(*attr)->_solosched, matching the pattern of sibling POSIX attribute setters in that file.Tested
Added test coverage in
GuestPthreadAttr:nullptror an uninitialized attribute handle returnsEINVAL(22)soloschedvalue is 0soloschedto 1 succeeds (0) and is reflected viascePthreadAttrGetsoloschedsoloschedto 0 succeeds and is reflected viascePthreadAttrGetsoloschedEINVAL(22)python tools/check_conventions.py --base origin/main(passed)Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repositoryImported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-10T10:16:22Z.
Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.
Pull request closed