You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1234567891011121314151617 |
- #pragma once
-
- #include <string>
- #include <mutex>
- #include <iostream>
-
- namespace logger {
-
- extern std::mutex mut;
-
- template<typename T>
- inline void log(const T &msg) {
- std::unique_lock<std::mutex> lock(mut);
- std::cerr << msg << '\n';
- }
-
- }
|