mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-13 04:51:38 -10:00
Nothing reports an SD card or USB drive coming or going, so the thread looks once a second. It waited out that second on a condition variable under a mutex it held the whole time; it now waits on an eventcount, and stopping it is an atomic flag and a notify that wakes it at once. samples/frontend/gx_devthread runs the thread against libogc and libfat stand-ins: a drive put in is mounted, a card taken out unmounted, and a stop returns at once; a stop that does not wake the thread must fail.