Code: Select all
#include
#include
#include
int main(){
std::ofstream outFile("example.txt", std::ios::out | std::ios::trunc);
std::atomic flag = false;
auto t1 = std::thread([&](){
outFileCode: Select all
#include
#include
#include
int main(){
std::ofstream outFile("example.txt", std::ios::out | std::ios::trunc);
std::atomic flag = false;
auto t1 = std::thread([&](){
outFile