Tag: data race
3 posts
-
C++ Runtime Checking: AddressSanitizer and ThreadSanitizer
Catch use-after-free, overflows, leaks and data races with ASan and TSan: compiler flags, reading reports, CMake presets, GitHub Actions and suppressions.
-
C++ Data Races: When to Use Atomics Instead of Mutexes
C++ data races explained: mutex vs std::atomic, memory orders, deadlock avoidance, and compare-exchange—with examples.
-
C++ Multithreading Crashes: Data Races, mutex, and atomic
Fix intermittent multithreaded crashes: data races vs race conditions, std::mutex, atomics, false sharing basics, condition variables.