diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2016-09-22 16:54:55 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2016-09-22 16:54:55 -0500 |
commit | 549cd2b06a89216cdbf198d225723134fb551b32 (patch) | |
tree | c27ef19e8a94de1daaf0b7ad6eb3758523d78e3a /src | |
parent | e616541cde47710de062367cc74c9b18821d9a73 (diff) | |
download | ayatana-indicator-display-549cd2b06a89216cdbf198d225723134fb551b32.tar.gz ayatana-indicator-display-549cd2b06a89216cdbf198d225723134fb551b32.tar.bz2 ayatana-indicator-display-549cd2b06a89216cdbf198d225723134fb551b32.zip |
use a std::atomic for adbd-client's m_pkresponse_ready
Diffstat (limited to 'src')
-rw-r--r-- | src/adbd-client.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/adbd-client.cpp b/src/adbd-client.cpp index 585352c..f36a823 100644 --- a/src/adbd-client.cpp +++ b/src/adbd-client.cpp @@ -23,6 +23,7 @@ #include <gio/gunixsocketaddress.h> #include <algorithm> +#include <atomic> #include <cctype> #include <cstring> #include <chrono> @@ -365,7 +366,7 @@ g_message("%s %s", G_STRLOC, G_STRFUNC); std::mutex m_pkresponse_mutex; std::condition_variable m_pkresponse_cv; - bool m_pkresponse_ready = false; + std::atomic<bool> m_pkresponse_ready {false}; PKResponse m_pkresponse = PKResponse::DENY; }; |