libSceAmpr: _Cnd_signal and _Cnd_init_with_name are stubs after #3079; fix branch ready #3342
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 screamm on 2026-10-11T08:17:47Z.
_Cnd_signaland_Cnd_init_with_name(libSceAmpr, Export.cpp) areNotImplemented_nid_no_patchstubs now that #3079 gave libc the Dinkumware_Cnd_*family. Deathloop (PPSA01670), Minecraft Legends and GTA III Definitive Edition import them.Fix branch ready:
screamm:feat/ampr-cnd-signal(e21484de, one commit onmaina4b0b16b). I cannot open it as a PR because of the intake check; anyone eligible is welcome to carry it, keeping the commit as is._Cnd_signal(pthread_cond**)uses the pointer-to-slot ABI the #3079 review established and a new libc helperSignalCondition_nid_no_patch(inThreads.cpp) that wakes one waiter of the condition objects libc's_Cnd_initcreates and returns_Thrd_success, like the merged_Cnd_broadcast; bad handles throw the sameinvalid_argumentas libc._Cnd_init_with_name(pthread_cond**, const char*)calls libc's_Cnd_initand ignores the name, following fpPS4's reverse-engineered PS4_Mtx_init_with_namewhere the name only names the pthread object._Thrd_idkeeps throwing: no public source settles the PS5 return form. All recorded in TechnicalDebt.guest_ampr_threadsgains a waiter woken by signal on a named condition, two waiters where one signal wakes exactly one, signal with no waiters, a null name, a plain_Cnd_inithandle, interop with libc_Cnd_broadcast/_Cnd_destroy, and the error cases.Tested on Windows 11 Pro 26220, WinLibs MinGW-w64 GCC 15.2.0 r7, Ninja, Release,
BUILD_TESTING=ON, full build includinglibs:guest_ampr_threadsandguest_libc_threads3/3;ctest -j8 -E "^agc_driver_|^video_out_flip"507/507 (with the #3329 test fix applied locally so the tree builds); withmain'sExport.cppthe extended Ampr test fails;tools/check_conventions.py --base mainandgit diff --checkpass. Not run on Linux. The "wakes exactly one" check uses a 50 ms window and would misfire only on a spurious host wakeup.Written with Claude Code assistance (implementation by a subagent, reviewed and validated in this session).
Imported from boykopovar/AnyPS5. Originally posted by blawesom on 2026-10-11T09:38:45Z.
Independent verification on Linux (the gap noted in the report): CachyOS, kernel 7.2.9, GCC 16.2.1, Ninja, Release,
BUILD_TESTING=ON.e21484deonto currentmain(the branch was 150+ commits behind): the commit applies cleanly, no conflicts.tools/check_conventions.py --base origin/mainandgit diff --checkpass.guest_ampr_threadsandguest_libc_threadspass (the 50 ms "wakes exactly one" window held).ctest -j8 -E "^agc_driver_|^video_out_flip"): 520/520 passed.The rebased branch is available at
blawesom:verify/3342for anyone carrying — the commit is otherwise unchanged.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-11T15:05:58Z.
I carried David’s implementation from #3499 into a current-main branch with his commit authorship preserved, then added bounded waiter setup (5 seconds) and a 20-second CTest timeout. The focused Linux/GCC 12.2 Release test passes 3/3. The #3657 PR had already been closed as a duplicate; GitHub will not reopen it after its branch was force-pushed, so I have not opened a replacement while #3499 remains open. I asked #3499’s author whether they would prefer the consolidated branch as the review target; otherwise the timeout change can be cherry-picked into #3499. The Windows/full-suite evidence in this issue remains attributed to its reporters.
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-11T23:27:16Z.
Closing: fixed by #3499.