This commit is contained in:
Dane Springmeyer 2015-09-30 14:23:21 -07:00
parent 0c23eaa4ba
commit 7122fdc6e5

View file

@ -43,22 +43,22 @@
namespace mapnik { namespace mapnik {
// mutexes
#ifdef MAPNIK_THREADSAFE #ifdef MAPNIK_THREADSAFE
std::mutex logger::severity_mutex_; std::mutex logger::severity_mutex_;
std::mutex logger::format_mutex_; std::mutex logger::format_mutex_;
#endif
// first time checks
std::atomic<bool> logger::severity_env_check_ {true}; std::atomic<bool> logger::severity_env_check_ {true};
std::atomic<bool> logger::format_env_check_ {true}; std::atomic<bool> logger::format_env_check_ {true};
// severity
std::atomic<logger::severity_type> logger::severity_level_ { std::atomic<logger::severity_type> logger::severity_level_ {
#else
bool logger::severity_env_check_ {true};
bool logger::format_env_check_ {true};
logger::severity_type logger::severity_level_ {
#endif
#if MAPNIK_DEFAULT_LOG_SEVERITY == 0 #if MAPNIK_DEFAULT_LOG_SEVERITY == 0
logger::debug logger::debug
#elif MAPNIK_DEFAULT_LOG_SEVERITY == 1 #elif MAPNIK_DEFAULT_LOG_SEVERITY == 1