ControllerInterface: Shutdown order and race condition fix.

This commit is contained in:
Jordan Woyak
2019-01-02 08:19:42 -06:00
parent cddb83fd06
commit 25d43ffd98
2 changed files with 18 additions and 27 deletions

View File

@ -56,7 +56,7 @@ public:
private:
std::vector<std::function<void()>> m_devices_changed_callbacks;
mutable std::mutex m_callbacks_mutex;
bool m_is_init;
std::atomic<bool> m_is_init;
std::atomic<bool> m_is_populating_devices{false};
WindowSystemInfo m_wsi;
};