mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-16 11:03:45 +01:00
Socket waits now block in select() on the socket plus a wake or cancel socket (Common/Net/Cancel), so a stop or cancel ends them at once. - HTTP: cancel flags become net::CancelToken; Connect waits once on all addresses, receives wait instead of spinning, no DNS retry sleep. - Adhoc: the friend finder and adhoc server block on their sockets with a wake socket and a deadline; matching runs on a CoreTiming tick instead of two threads (savestate section bumped). - sceNetInet select/poll check without blocking and park the HLE thread, re-checked from a CoreTiming event until ready or the emulated timeout. - Vendor the aemu_postoffice client (was a submodule) with no sleeps: waits on the socket, close via shutdown and an eventcount, cancelable connects, and lock-free session slot claims. - PortManager waits without a timeout; PSP_InitWait replaces the headless boot poll. - TimeUtil: sleep_us/sleep_ms only outside the core; sleep_precise, sleep_random, yield and the Windows timer period are gone. - Unit test for the socket waits.
674 B
674 B
aemu_postoffice client
The client half of https://github.com/Kethen/aemu_postoffice (branch ppsspp,
commit 9e53363), as the core builds it. GPLv3, see LICENSE.txt.
Changed from upstream:
- Nothing sleeps or yields. Connects wait for the socket once with their
timeout, blocked sends and receives wait for the socket, and a close stops
new operations, wakes blocked ones with
shutdown(), and parks on a libretro-common eventcount until those in flight are done. ptp_connect_v4/_v6take acancel_fd: a socket that becomes readable to give the connect up, so a close doesn't wait one out.- The PSP, stdc and test builds, and the server, are left out.