mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-11 03:11:33 -10:00
While a token poll is in flight the polling task parks; the poll's callback publishes the outcome through atomics, clearing poll_pending last, and wakes the task by ident when the outcome is final. A pending reply leaves the next poll to its interval. A cancel ends the task once no poll is in flight, since the callback writes into the context the task's cleanup frees. gdrive_backup_test drives the handler and the callback through a poll, a cancel and a final reply.