mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-18 04:45:39 +00:00
Attempt to fix a log output deadlock issue.
This commit is contained in:
parent
6a2a3b1259
commit
782d68f906
|
@ -85,6 +85,7 @@ std::ostringstream& Log::get(LogLevel level)
|
||||||
#else
|
#else
|
||||||
localtime_r(&t, &tm);
|
localtime_r(&t, &tm);
|
||||||
#endif
|
#endif
|
||||||
|
std::unique_lock<std::mutex> lock {sLogMutex};
|
||||||
mOutStringStream << std::put_time(&tm, "%b %d %T ") << mLogLevelMap[level] << ":\t";
|
mOutStringStream << std::put_time(&tm, "%b %d %T ") << mLogLevelMap[level] << ":\t";
|
||||||
mMessageLevel = level;
|
mMessageLevel = level;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue