diff options
| author | 2024-08-06 01:09:55 +0000 | |
|---|---|---|
| committer | 2024-08-06 01:09:55 +0000 | |
| commit | d256dae07904baf0dde5bb4d995320e9195fa74c (patch) | |
| tree | a74e1c952539f814266b0ef4dde5ef6b9f8c81d5 /libs/binder/ProcessState.cpp | |
| parent | be501ee4bd32b19f09655887a2a84704b56c41a8 (diff) | |
| parent | 37961ec0f6ed2fa2984484d0d4ddd9dfa4030192 (diff) | |
Merge "binder: replace android_atomic_add with std::atomic" into main am: 37961ec0f6
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/3207836
Change-Id: Icce595836df13633001301b9d29d69c56bee1100
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'libs/binder/ProcessState.cpp')
| -rw-r--r-- | libs/binder/ProcessState.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libs/binder/ProcessState.cpp b/libs/binder/ProcessState.cpp index 7c29dba2d0..c2e0937911 100644 --- a/libs/binder/ProcessState.cpp +++ b/libs/binder/ProcessState.cpp @@ -24,7 +24,6 @@ #include <binder/IPCThreadState.h> #include <binder/IServiceManager.h> #include <binder/Stability.h> -#include <cutils/atomic.h> #include <utils/AndroidThreads.h> #include <utils/String8.h> #include <utils/Thread.h> @@ -387,7 +386,7 @@ void ProcessState::expungeHandle(int32_t handle, IBinder* binder) } String8 ProcessState::makeBinderThreadName() { - int32_t s = android_atomic_add(1, &mThreadPoolSeq); + int32_t s = mThreadPoolSeq.fetch_add(1, std::memory_order_release); pid_t pid = getpid(); std::string_view driverName = mDriverName.c_str(); |