Small tests i share because why not
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

18 řádky
292 B

#include <thread>
#include <iostream>
volatile int counter=0;
void incr(const int count=200000)
{
for(int i=0;i<count;i++)
counter++;
}
int main()
{
std::thread m(incr,200000);
incr(200000);
std::cout << "Expects 400000, get "<< counter <<std::endl;
return 0;
}