diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2016-09-22 12:52:56 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2016-09-22 12:52:56 -0500 |
commit | 3a644063077a86899b59614048d84f86e77f75cd (patch) | |
tree | 1fdbcf9b07284117587c9f15e1ae479fe5c2554e /src | |
parent | c17e7b8f11eead4105b6fc706650780e68f6634c (diff) | |
download | ayatana-indicator-display-3a644063077a86899b59614048d84f86e77f75cd.tar.gz ayatana-indicator-display-3a644063077a86899b59614048d84f86e77f75cd.tar.bz2 ayatana-indicator-display-3a644063077a86899b59614048d84f86e77f75cd.zip |
The notifying thread does not need to hold the lock on the same mutex as the one held by the waiting thread(s); in fact doing so is a pessimization.
Diffstat (limited to 'src')
-rw-r--r-- | src/adbd-client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/adbd-client.cpp b/src/adbd-client.cpp index 25aefa8..597e69f 100644 --- a/src/adbd-client.cpp +++ b/src/adbd-client.cpp @@ -131,7 +131,7 @@ g_debug("%s %s", G_STRLOC, G_STRFUNC); g_debug("%s %s", G_STRLOC, G_STRFUNC); // set m_pkresponse and wake up the waiting worker thread - std::lock_guard<std::mutex> lk(m_pkresponse_mutex); + //std::lock_guard<std::mutex> lk(m_pkresponse_mutex); //std::unique_lock<std::mutex> lk(m_pkresponse_mutex); g_debug("%s %s", G_STRLOC, G_STRFUNC); m_pkresponse = response; |