feat(libkernel): implement pthread spinlocks and relative condition wait #3689
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3689"
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 MarcZX10 on 2026-10-11T15:22:45Z.
What
Implement the POSIX pthread spinlock family and
pthread_cond_reltimedwait_npin libkernel, carrying David's two commits from issue #3554 with his commit authorship preserved.pthread_cond_reltimedwait_npforwards the relative timeout toscePthreadCondTimedwaitand translates the SCE result to POSIX error numbers. The timeout unit/signature is inferred from shadPS4; console behavior remains unverified and is recorded in TechnicalDebt.Tested
libkernel,guest_pthread_spin_tests, andguest_cond_timedwait_testssuccessfully.guest_pthread_spinandguest_cond_timedwaitpassed 3 consecutive runs (6/6).python3 tools/check_conventions.py --base upstream/mainandgit diff --checkpassed.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 repository (attach them to this PR)Closes #3554.
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-11T15:23:21Z.
Progress report (
df64fa9→774f218)📈 System libraries: 85.96% (+0.02%, +6 implemented functions)
✅ 6 implemented
pthread_cond_reltimedwait_np_nid_postfixpthread_spin_destroy_nid_postfixpthread_spin_init_nid_postfixpthread_spin_lock_nid_postfixpthread_spin_trylock_nid_postfixpthread_spin_unlock_nid_postfixImported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-11T21:56:55Z.
Rebased onto current main: the only conflict was the
TechnicalDebt.mdline adjacency (both lines kept). Rebuilt libkernel;guest_pthread_spinandguest_cond_timedwaitpass on the rebased tree. Merging.