mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-22 10:50:15 -10:00
Keep client APIs and server responses on one owner thread, using the libretro-common task queue for HTTP delivery. Run delayed badge prefetch on that owner with bounded traversal per tick. Document the ownership contract and remove the client mutex, its call sites and native backends. Replace the badge-cache spinlock with libretro-common MPSC requests, atomic surface transfers and deferred reader-safe retirement. Keep keys immutable across loads and reject stale generations without waiting. Cover concurrent requests, resets, late uploads, shared-default recovery, queued client responses, cancellation and destruction. Guard against reintroducing the removed locks and run sanitizer/portability CI lanes.