diff options
| author | Filoppi <filippotarpini@hotmail.it> | 2021-05-15 11:32:00 +0300 |
|---|---|---|
| committer | Filoppi <filippotarpini@hotmail.it> | 2021-06-07 11:07:05 +0300 |
| commit | f90d851e2519d46f62e2037896053bc546e7133b (patch) | |
| tree | adb9a2b7b18c5581aa4b995fc2cea4ddd25a233d /Source/Core/InputCommon/ControllerInterface/ControllerInterface.h | |
| parent | c285ae57fb0027a3e6da12b7097e15e0485ee526 (diff) | |
ControllerInterface: mixed comments
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/ControllerInterface.h')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/ControllerInterface.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h index 12d17614da..024548b713 100644 --- a/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h +++ b/Source/Core/InputCommon/ControllerInterface/ControllerInterface.h @@ -67,6 +67,9 @@ public: void Shutdown(); void AddDevice(std::shared_ptr<ciface::Core::Device> device); void RemoveDevice(std::function<bool(const ciface::Core::Device*)> callback); + // This is mandatory to use on device populations functions that can be called concurrently by + // more than one thread, or that are called by a single other thread. + // Without this, our devices list might end up in a mixed state. void PlatformPopulateDevices(std::function<void()> callback); bool IsInit() const { return m_is_init; } void UpdateInput(); |
