commit | 6b34ab9cec9ac314ba5cc64bfe85eac4f873d35f | [log] [tgz] |
---|---|---|
author | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Wed Feb 11 21:22:46 2015 -0800 |
committer | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Sat Feb 14 12:26:32 2015 -0800 |
tree | a97d3bd218f8c94a71315d729adcb81e5a64c569 | |
parent | 5d57f97fa77bd62f6e2d8e33a6cf83654144719a [diff] [blame] |
core: Make logger thread-safe Change-Id: Ic45dc0912da9c2e3f074d3f74921bfe33741bf63 Refs: #2489
diff --git a/core/logger.cpp b/core/logger.cpp index 5ba8c39..3a9da61 100644 --- a/core/logger.cpp +++ b/core/logger.cpp
@@ -36,6 +36,8 @@ namespace nfd { +std::mutex g_logMutex; + Logger::Logger(const std::string& name, LogLevel level) : m_moduleName(name) , m_enabledLogLevel(level)