diff options
| author | 2023-10-31 16:49:25 +0000 | |
|---|---|---|
| committer | 2023-10-31 16:49:25 +0000 | |
| commit | 35a2d24253b81145654cff6fdaadf6a21ffbd531 (patch) | |
| tree | 4230a47e45263277e8bee2bdb596ef6d7188b6f5 /libs/binder/ProcessState.cpp | |
| parent | fd00e134bc9ed907d88fcc1b3145c15aed05d694 (diff) | |
| parent | 64d7900e9a1ace4a3ad571d7c6bbb296e06e3bbb (diff) | |
Merge "Binder: migrate off libutils Mutex" into main am: 29c9a960a1 am: 156adea4c1 am: 64d7900e9a
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2807154
Change-Id: I4e01ba24767faed42492cbbdeb1ecef3e2863b5a
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 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/binder/ProcessState.cpp b/libs/binder/ProcessState.cpp index 8ec4af9945..58203c1373 100644 --- a/libs/binder/ProcessState.cpp +++ b/libs/binder/ProcessState.cpp @@ -189,7 +189,7 @@ void ProcessState::childPostFork() { void ProcessState::startThreadPool() { - AutoMutex _l(mLock); + std::unique_lock<std::mutex> _l(mLock); if (!mThreadPoolStarted) { if (mMaxThreads == 0) { // see also getThreadPoolMaxTotalThreadCount @@ -203,7 +203,7 @@ void ProcessState::startThreadPool() bool ProcessState::becomeContextManager() { - AutoMutex _l(mLock); + std::unique_lock<std::mutex> _l(mLock); flat_binder_object obj { .flags = FLAT_BINDER_FLAG_TXN_SECURITY_CTX, @@ -310,7 +310,7 @@ sp<IBinder> ProcessState::getStrongProxyForHandle(int32_t handle) { sp<IBinder> result; - AutoMutex _l(mLock); + std::unique_lock<std::mutex> _l(mLock); if (handle == 0 && the_context_object != nullptr) return the_context_object; @@ -374,7 +374,7 @@ sp<IBinder> ProcessState::getStrongProxyForHandle(int32_t handle) void ProcessState::expungeHandle(int32_t handle, IBinder* binder) { - AutoMutex _l(mLock); + std::unique_lock<std::mutex> _l(mLock); handle_entry* e = lookupHandleLocked(handle); |