diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-02-28 18:04:18 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2016-02-28 18:04:18 +0100 |
commit | 1a258711b00cef322cadedf35540d64ae18eb0b0 (patch) | |
tree | b779f6b92bd7b87e032ed9b31d787f0bd59aff1d /src/Log.h | |
parent | fe086519ac999051d28b2d73222626c15682ce31 (diff) | |
download | dabmux-1a258711b00cef322cadedf35540d64ae18eb0b0.tar.gz dabmux-1a258711b00cef322cadedf35540d64ae18eb0b0.tar.bz2 dabmux-1a258711b00cef322cadedf35540d64ae18eb0b0.zip |
Guard log print to stderr with mutex
Diffstat (limited to 'src/Log.h')
-rw-r--r-- | src/Log.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -39,6 +39,7 @@ #include <stdexcept> #include <string> #include <map> +#include <mutex> #define SYSLOG_IDENT "ODR-DabMux" #define SYSLOG_FACILITY LOG_LOCAL0 @@ -146,6 +147,8 @@ class Logger { private: std::list<LogBackend*> backends; + + std::mutex m_cerr_mutex; }; extern Logger etiLog; |