diff --git a/Subtrees/beast/modules/beast_core/diagnostic/beast_FatalError.cpp b/Subtrees/beast/modules/beast_core/diagnostic/beast_FatalError.cpp index 6737f9db0..68d864d50 100644 --- a/Subtrees/beast/modules/beast_core/diagnostic/beast_FatalError.cpp +++ b/Subtrees/beast/modules/beast_core/diagnostic/beast_FatalError.cpp @@ -31,7 +31,11 @@ void FatalError::resetReporter (Reporter& reporter) FatalError::FatalError (char const* message, char const* fileName, int lineNumber) { - LockType::ScopedLockType lock (m_mutex); + typedef CriticalSection LockType; + + static LockType s_mutex; + + LockType::ScopedLockType lock (s_mutex); String const backtraceString = SystemStats::getStackBacktrace (); diff --git a/Subtrees/beast/modules/beast_core/diagnostic/beast_FatalError.h b/Subtrees/beast/modules/beast_core/diagnostic/beast_FatalError.h index 130524ea0..f65a39ad3 100644 --- a/Subtrees/beast/modules/beast_core/diagnostic/beast_FatalError.h +++ b/Subtrees/beast/modules/beast_core/diagnostic/beast_FatalError.h @@ -87,11 +87,7 @@ public: FatalError (char const* message, char const* fileName, int lineNumber); private: - typedef CriticalSection LockType; - static Static::Storage , FatalError> s_reporter; - - LockType m_mutex; }; #endif