mirror of
https://github.com/libretro/parallel-gx1.git
synced 2026-11-07 04:26:01 -10:00
The GPU thread publishes a picture's description into one of four slots and the generation naming it into an atomic word; the frontend's thread claims it with a CAS that sets a taken bit, and the GPU thread reclaims an untaken target with a CAS on the same word, so exactly one of them owns it. What is being handed over and what was handed are atomic tags only the frontend's thread writes, the first before its claim. No slock on either side.