Skip to content

Commit

Permalink
Remove a redundant mutex lock in logging.
Browse files Browse the repository at this point in the history
Really can't see any purpose at all... Weird.
  • Loading branch information
hrydgard committed Jul 19, 2022
1 parent d0a319c commit 26850d8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion Common/LogManager.cpp
Expand Up @@ -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) {
Expand Down
1 change: 0 additions & 1 deletion Common/LogManager.h
Expand Up @@ -122,7 +122,6 @@ class LogManager {
RingbufferLogListener *ringLog_ = nullptr;
static LogManager *logManager_; // Singleton. Ugh.

std::mutex log_lock_;
std::mutex listeners_lock_;
std::vector<LogListener*> listeners_;

Expand Down

0 comments on commit 26850d8

Please sign in to comment.