This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <atomic> | |
#include <thread> | |
/** | |
* The following code is a simplification of a bug TSAN reported. | |
* | |
* TSAN reports the write on (C) races with (A). | |
* TSAN does not report (C) races with (B). | |
* If we remove (A), then TSAN does not report a race. | |
* |