Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor logging code to get rid of a mutex. #3126

Merged
merged 5 commits into from Dec 3, 2015

Conversation

phire
Copy link
Member

@phire phire commented Oct 3, 2015

I haven't benchmarked it at all, but the code is cleaner.

Most of the individual log listeners lock additional mutexes anyway.

@@ -141,7 +136,9 @@ void LogManager::Log(LogTypes::LOG_LEVELS level, LogTypes::LOG_TYPE type,
#ifdef ANDROID
__android_log_write(ANDROID_LOG_INFO, "Dolphinemu", msg.c_str());

This comment was marked as off-topic.

bool HasListeners() const { return !m_listeners.empty(); }
bool HasListeners() const { return bool(m_listener_ids); }

typedef class BitSet32::Iterator iterator;

This comment was marked as off-topic.

@degasus
Copy link
Member

degasus commented Dec 2, 2015

LGTM

phire added a commit that referenced this pull request Dec 3, 2015
Refactor logging code to get rid of a mutex.
@phire phire merged commit a759883 into dolphin-emu:master Dec 3, 2015
@phire phire deleted the remove-logging-lock branch December 3, 2015 00:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants