mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
vcmi: reduce boost a little bit
This commit is contained in:
@@ -85,8 +85,8 @@ bool CLoggerDomain::isGlobalDomain() const { return name == DOMAIN_GLOBAL; }
|
||||
|
||||
const std::string& CLoggerDomain::getName() const { return name; }
|
||||
|
||||
boost::recursive_mutex CLogger::smx;
|
||||
boost::recursive_mutex CLogManager::smx;
|
||||
std::recursive_mutex CLogger::smx;
|
||||
std::recursive_mutex CLogManager::smx;
|
||||
|
||||
DLL_LINKAGE vstd::CLoggerBase * logGlobal = CLogger::getGlobalLogger();
|
||||
|
||||
|
||||
@@ -78,8 +78,8 @@ private:
|
||||
CLogger * parent;
|
||||
ELogLevel::ELogLevel level;
|
||||
std::vector<std::unique_ptr<ILogTarget> > targets;
|
||||
mutable boost::mutex mx;
|
||||
static boost::recursive_mutex smx;
|
||||
mutable std::mutex mx;
|
||||
static std::recursive_mutex smx;
|
||||
};
|
||||
|
||||
/* ---------------------------------------------------------------------------- */
|
||||
@@ -101,8 +101,8 @@ private:
|
||||
virtual ~CLogManager();
|
||||
|
||||
std::map<std::string, CLogger *> loggers;
|
||||
mutable boost::mutex mx;
|
||||
static boost::recursive_mutex smx;
|
||||
mutable std::mutex mx;
|
||||
static std::recursive_mutex smx;
|
||||
};
|
||||
|
||||
/// The struct LogRecord holds the log message and additional logging information.
|
||||
@@ -200,7 +200,7 @@ private:
|
||||
bool coloredOutputEnabled;
|
||||
CLogFormatter formatter;
|
||||
CColorMapping colorMapping;
|
||||
mutable boost::mutex mx;
|
||||
mutable std::mutex mx;
|
||||
};
|
||||
|
||||
/// This target is a logging target which writes messages to a log file.
|
||||
@@ -222,7 +222,7 @@ public:
|
||||
private:
|
||||
FileStream file;
|
||||
CLogFormatter formatter;
|
||||
mutable boost::mutex mx;
|
||||
mutable std::mutex mx;
|
||||
};
|
||||
|
||||
VCMI_LIB_NAMESPACE_END
|
||||
|
||||
Reference in New Issue
Block a user