[BUG] Racy load() when ATOMIC_USE_MSVC_INTRINSICS is used #2108
Labels
[core]
Area: Changes in SRT library core
Priority: Low
Type: Bug
Indicates an unexpected problem or unintended behavior
Milestone
As reported by @jlsantiago0 in PR #2104,
load()
forATOMIC_USE_MSVC_INTRINSICS
is racy and should be fixed.Generally, C++11 and hence the corresponding
std::atomic
library is recommended to be used on Windows by defining-DENABLE_STDCXX_SYNC=ON
. With such configuration usage of apthreads
port is also avoided. And also this issue is not in force for such a build configuration.However, let this issue be here until fixed or build configuration
-DENABLE_STDCXX_SYNC=OFF
is completely forbidden on Windows.Affected versions: SRT v1.4.4 and above.
Note. Support for atomic was added in SRT v1.4.4.
The text was updated successfully, but these errors were encountered: