diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2012-08-24 09:47:55 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-29 14:14:46 +0200 |
commit | b2edd830b1493ac7fb03a89ce6975769e2a3cbda (patch) | |
tree | 2bc1092562a6f4028c46ed22c810ee2099868a9c /src/plugins/bearer/nativewifi/main.cpp | |
parent | 462a266edf88c763db221e547ba96fdfd2a6222b (diff) |
QDnsLookupRunnable: replace a volatile bool with an atomic int
Since there is non-atomic data that is protected by 'triedResolve',
the (outer) read from triedResolve needs to have acquire, and the
store needs to have release semantics. The release implied by the
mutex unlock is not good enough because it only synchronises-with
the locking of the same mutex, which not all threads execute.
Change-Id: If46b3ea6ccfdd66ca41ce44d4f45bef2c2c30f72
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
Diffstat (limited to 'src/plugins/bearer/nativewifi/main.cpp')
0 files changed, 0 insertions, 0 deletions