QHostInfo: replace a volatile bool with an atomic int
authorMarc Mutz <marc.mutz@kdab.com>
Fri, 24 Aug 2012 07:47:55 +0000 (09:47 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 29 Aug 2012 12:14:17 +0000 (14:14 +0200)
commit462a266edf88c763db221e547ba96fdfd2a6222b
tree61825b51f46f3a4fc2b74f60713c68733b4c256c
parente0d38745258e12a2615030674ff022641dabffef
QHostInfo: replace a volatile bool with an atomic int

A volatile bool read/store is documented on MSVC to have acquire/release
semantics, respectively, but that doesn't need to be true for MinGW, so
use explicit memory ordering.

Apply the same fix to the Unix implementation, too.

Change-Id: Ica466cec50beed830aafa4e3384d82f02e1a47e8
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
src/network/kernel/qhostinfo_unix.cpp
src/network/kernel/qhostinfo_win.cpp