OSDN Git Service

Revert "Revert "Revert "Revert "Remove incorrect android_atomic_...64 use.""""
authorHans Boehm <hboehm@google.com>
Tue, 12 Aug 2014 22:56:00 +0000 (22:56 +0000)
committerHans Boehm <hboehm@google.com>
Tue, 2 Sep 2014 23:11:46 +0000 (16:11 -0700)
commit08ff802151ea3089a5f352dfc795c99017c1d122
tree23d9af48933c3416aacf7836228b83c441d115cd
parentbcbf97ef8fb6eaf527014ed9e7d979ad4fe9fdd2
Revert "Revert "Revert "Revert "Remove incorrect android_atomic_...64 use.""""

After fixing b/16874785.

This reverts commit f010a05c7e9a23b6083294aff4a8183ab01f686e.

Original comment, which actually describes the effect of this:

Change the mExtras field in Binder.h to be a stdatomic.h atomic
value, and replace references to it with proper stdatomic.h calls.
This removes one of a small number of remaining 64 bit
android_atomic references.  It also replaces the erroneously
non-atomic read accesses to mExtras.

It would be better if this used the C++11 <atomic> facility,
but we don't quite have that yet.

Fixes

Bug:16513433

Change-Id: I1645ca5d6f60595bf5d388913665ce4b8780b26d
(cherry picked from commit 3effababf2980d029339522fdc914bdeb913d99b)
include/binder/Binder.h
libs/binder/Binder.cpp