aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2016-09-22 12:52:56 -0500
committerCharles Kerr <charles.kerr@canonical.com>2016-09-22 12:52:56 -0500
commit3a644063077a86899b59614048d84f86e77f75cd (patch)
tree1fdbcf9b07284117587c9f15e1ae479fe5c2554e /src
parentc17e7b8f11eead4105b6fc706650780e68f6634c (diff)
downloadayatana-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.cpp2
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;