3 ms·
Not really. If you're doing an atomic write to the same object from two different threads, you're going to have one win the race and the other lose. That may be
by NovemberWhiskey 5y ago
Not really. If you're doing an atomic write to the same object from two different threads, you're going to have one win the race and the other lose. That may be a bug in your code, but it's not undefined behavior at the language level.