diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2011-09-29 11:45:01 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-10-05 16:31:37 +0200 |
commit | a4a94544f27a66ea1189a3a5927ed2dafc28f88c (patch) | |
tree | d83848aa6191436ad13608101773de9709f66218 /tests/manual/bearerex/bearerex.h | |
parent | 0e339e2ef5138f93480a5cc60add1c8a26858907 (diff) |
Don't use implicit QAtomic* casts in QFreeList
Pair the _next.testAndSetRelease() call in QFreeList<T>::release() with
_next.loadAcquire(), to ensure that the update to the bucket
being released is properly fenced.
QFreeList<T>:next() does not need a release fence, only an acquire fence,
which is placed on the memory bucket address load.
Change-Id: Ib5b9d6ef6107f87aa8e3ea2dd3a7f9116c75da70
Reviewed-by: Thiago Macieira
Reviewed-on: http://codereview.qt-project.org/5802
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
Diffstat (limited to 'tests/manual/bearerex/bearerex.h')
0 files changed, 0 insertions, 0 deletions