You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The C++ ADIS classes should use std::atomic<bool> instead for cross-thread communication. User-defined move constructors and move assignment operators will be required since atomics aren't movable. .load() should be used to assign the moved-to atomic object.
The text was updated successfully, but these errors were encountered:
calcmogul
changed the title
ADIS classes use volatile instead of atomic, which creates race conditions
C++ ADIS classes use volatile instead of atomic, which creates race conditions
Jan 12, 2024
The C++ ADIS classes should use
std::atomic<bool>
instead for cross-thread communication. User-defined move constructors and move assignment operators will be required since atomics aren't movable..load()
should be used to assign the moved-to atomic object.The text was updated successfully, but these errors were encountered: