Merge pull request #15707 from hrydgard/remove-redundant-log-mutex

Remove a redundant mutex lock in logging.
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2022-07-19 18:46:57 +02:00
commit bc0a59df34
2 files changed
-2

No files matched your search

-1
View File
@@ -234,7 +234,6 @@ void LogManager::Log(LogTypes::LOG_LEVELS level, LogTypes::LOG_TYPE type, const
file = fileshort + 1;
}
std::lock_guard<std::mutex> lk(log_lock_);
GetTimeFormatted(message.timestamp);
if (hleCurrentThreadName) {
-1
View File
@@ -122,7 +122,6 @@ private:
RingbufferLogListener *ringLog_ = nullptr;
static LogManager *logManager_; // Singleton. Ugh.
std::mutex log_lock_;
std::mutex listeners_lock_;
std::vector<LogListener*> listeners_;