mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-01-26 13:59:12 -06:00
Different threads are adding and calling callbacks, so this should have some locking. This is both to ensure thread safety when accessing `s_callbacks` and to ensure that there won't be situations where a callback gets called after it's removed. `s_callback_guards` is also accessed from multiple threads and has therefore been made atomic.