forked from dolphin-emu/dolphin
Since we may have to add/access devices from different threads, this adds synchronisation to anything that touches m_devices.
Since we may have to add/access devices from different threads, this adds synchronisation to anything that touches m_devices.