Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c39caf36 authored by Yabin Cui's avatar Yabin Cui
Browse files

libbinder: fix using destroyed mutex warning.

Bug: 77473515
Test: run `pm list instrumentation` for several hours,
Test: and no warning appears.
Change-Id: I66a39ddd66731779fdc6e534f827ad524685b3ba
parent 6fa25f9d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ TextOutput& aerr(gStderrTextOutput);

// ------------ ProcessState.cpp

Mutex gProcessMutex;
Mutex& gProcessMutex = *new Mutex;
sp<ProcessState> gProcess;

class LibBinderIPCtStatics
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@ namespace android {
extern Vector<int32_t> gTextBuffers;

// For ProcessState.cpp
extern Mutex gProcessMutex;
extern Mutex& gProcessMutex;
extern sp<ProcessState> gProcess;

// For IServiceManager.cpp