/
VictorArtyukhov
/
multithreading
Обзор
Документация
Войти
/
VictorArtyukhov
/
multithreading
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/logger.cpp
9 строк
239 B
Alexej Harm
initial commit
01 сен 2025, 15:02
01 сен 2025, 15:02
476751f
Код
Авторство
О чём код?
#include "logger.hpp" void print(std::string_view text) { static std::mutex mutex; const std::lock_guard lock{mutex}; std::fwrite(text.data(), text.size(), sizeof(char), stdout); std::fputc('\n', stdout); std::fflush(stdout); }