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 <iostream> | |
#include <thread> | |
#include <mutex> | |
#include <condition_variable> | |
#include <atomic> | |
// The purpose of the this apparently fine application is to make you appreciate thread santizers | |
// https://clang.llvm.org/docs/ThreadSanitizer.html | |
class Foo{ |