mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-14 23:10:33 +02:00
On a PSP, dialog init and shutdown happen partly at the accessThread priority and partly at the graphicsThread priority, one phase after the other. Model that with one helper thread that switches priority per phase, and let starting it reschedule normally instead of disabling interrupts. A caller with worse priority than both now sees shutdown complete inside ShutdownStart, as on hardware. NFL Street 3 (graphics 17, access 19, caller 111) calls the next InitStart right after ShutdownStart and used to loop forever on 'A save request is already running' (#19957). The utility pspautotests, where the caller has better priority, are unchanged. Also logs the dialog thread priorities at debug level. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>