Вот код:
Код: Выделить всё
#include
#include
#include
using namespace std::chrono_literals;
void test1(int &i){
while(i
Подробнее здесь: [url]https://stackoverflow.com/questions/79334924/multi-threaded-test-doesnt-seem-to-accept-pointers[/url]Код: Выделить всё
#include
#include
#include
using namespace std::chrono_literals;
void test1(int &i){
while(i
Подробнее здесь: [url]https://stackoverflow.com/questions/79334924/multi-threaded-test-doesnt-seem-to-accept-pointers[/url]