feat(libSceNKWebKit): implement WKRunLoop main run loop lifecycle and dispatch helpers #16016
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16016"
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 heditrigui on 2026-11-05T10:10:27Z.
What
Implements the WebKit PlayStation C API main run loop helpers in
libSceNKWebKit:WKRunLoopInitializeMain(NIDL8wKvGYzNDU)WKRunLoopRunMain(NID7REoZxCEojI)WKRunLoopStopMain(NIDB-uwQDniNXM)WKRunLoopCallOnMainThread(NID2haZWaB3Gcs)Functions follow the PlayStation WebKit C SPI (
Source/WebKit/UIProcess/API/C/playstation/WKRunLoop.h) lifecycle semantics using host thread synchronization primitives (std::mutex,std::condition_variable, andstd::queue).WKRunLoopFunctioncallback type and the four functions withAPS5_VABIincore/libs/prx/libSceNKWebKit/include/WebKitValueExports.hpp.WKRunLoopInitializeMain,WKRunLoopRunMain,WKRunLoopStopMain, andWKRunLoopCallOnMainThreadincore/libs/prx/libSceNKWebKit/src/RunLoop.cpp.Export.cppand declarations fromInventoryExports.hpp.docs/dev/debt/libSceNKWebKit.mdfrom 7417 to 7413 and documents functional run loop debt.Tested
nkwebkit_base, which contains the new run-loop cases intests/Base.cpp, passes in 3 of 3 runs, none skipped (JJenkx).core/libs/prx/libSceNKWebKit/tests/Base.cppcovering initialization, main-thread callback queueing, dispatch execution, and stopping from both the main thread callback and a background worker thread.python tools/check_conventions.py --base upstream/main(0 findings).//or/* */) introduced.boykopovar/AnyPS5.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)