mirror of
https://github.com/libretro/RetroArch.git
synced 2026-11-22 01:33:23 -10:00
The flag needs no setup, so rtime_localtime() is guarded before rtime_init() and after rtime_deinit() as well as between them, and no caller is handed another thread's fields. Without CAS the lock stays. rtime_localtime_test converts four timestamps from four threads at once in all three windows and checks each thread gets its own.