Код: Выделить всё
void thread1() {
std::string str;
while (true) {
{
std::lock_guard lock(io_mtx);
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79364960/how-can-i-implement-two-streams-that-have-output-so-that-the-outputs-dont-get-m[/url]
Мобильная версия