feat(libcinternal): implement relative thread sleep #15931
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/15931"
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 KomedyKid on 2026-11-05T01:17:27Z.
What
Replaces the throwing
std::__sce_v2::_Thrd_sleep_forstub with relative thread sleep. Zero milliseconds yields; positive waits preserve the full 64-bit duration and use bounded chunks to avoid host duration overflow.The behavior follows Microsoft STL sharedmutex.cpp. Sony-specific behavior remains unverified and is recorded in technical debt.
Manual comparison of the reported overlapping PRs found no duplicate sleep implementation. The overlaps concern inventory documentation, build registration and adjacent declarations.
Merge-order coordination:
mainand is included in this branch.Tested
Windows x86-64, WinLibs MinGW-w64 GCC 15.2.0 r7, Release, BUILD_TESTING=ON, commit
effa625451.guest_relative_sleep_testsand its library dependencies through the full project configuration.guest_relative_sleepandguest_relative_sleep_large: 2/2 passed. Covers zero delay, 1/20/80 ms waits, and durations of 2^32, 2^63 and UINT64_MAX milliseconds.guest_relative_sleeppassed 3/3 runs after a clean merge onto main.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)