diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2016-04-29 20:52:05 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2016-05-09 05:30:49 +0000 |
commit | 29076cf6cbd22e2e16a730787c79c2734655756e (patch) | |
tree | d018cb6e287396e92d4e15b26760d114ca89c6de /mkspecs/linux-g++-64 | |
parent | ad66dbe305cff72443f4d3484191872d56e6dfbb (diff) |
Fix QBasicAtomicPointer::{load,store} to actually be relaxed
We were using direct loading and operator=, which for everything except
std::atomic was very relaxed. But std::atomic<T *> defines the direct
access to actually be the least relaxed possible, under the idea that if
you didn't know any better to use a member function, you probably need
the most protection.
So use Ops::load and Ops::store.
Change-Id: Id5480807d25e49e78b79ffff144a06a2e6398576
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Diffstat (limited to 'mkspecs/linux-g++-64')
0 files changed, 0 insertions, 0 deletions