ControllerInterface: Remove OSX window handle

also make it more thread safe (avoid rare deadlock)
and fix it trying to add devices before the CI has init
This commit is contained in:
Filoppi
2021-05-15 12:08:38 +03:00
parent 2376aec135
commit c238e49119
4 changed files with 29 additions and 22 deletions

View File

@ -116,6 +116,7 @@ private:
std::list<std::function<void()>> m_devices_changed_callbacks;
mutable std::recursive_mutex m_devices_population_mutex;
mutable std::mutex m_pre_population_mutex;
mutable std::mutex m_callbacks_mutex;
std::atomic<bool> m_is_init;
// This is now always protected by m_devices_population_mutex, so