summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2018-06-08 07:24:04 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2018-06-08 07:24:04 +0000
commitdbed1812043c28ca05aa44a5109cc9071953ab81 (patch)
tree976f25922a71c4550872238030696a4ed46177fa
parent02fbcd35564190a0664f55acd98d12f3865fbf5b (diff)
parent0695b994762cab51cb2b7d3c95b066be215897b9 (diff)
downloadlibhwbinder-pie-release-2.tar.gz
Change-Id: I55e163bb85d49442e8c52e0385d4b4c51c5c87c2
-rw-r--r--Static.cpp2
-rw-r--r--include/hwbinder/Static.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Static.cpp b/Static.cpp
index c63e503..a84f811 100644
--- a/Static.cpp
+++ b/Static.cpp
@@ -73,7 +73,7 @@ TextOutput& aerr(gStderrTextOutput);
// ------------ ProcessState.cpp
-Mutex gProcessMutex;
+Mutex& gProcessMutex = *new Mutex;
sp<ProcessState> gProcess;
class LibHwbinderIPCtStatics
diff --git a/include/hwbinder/Static.h b/include/hwbinder/Static.h
index 99821ca..4b84c89 100644
--- a/include/hwbinder/Static.h
+++ b/include/hwbinder/Static.h
@@ -29,7 +29,7 @@ namespace hardware {
extern Vector<int32_t> gTextBuffers;
// For ProcessState.cpp
-extern Mutex gProcessMutex;
+extern Mutex& gProcessMutex;
extern sp<ProcessState> gProcess;
} // namespace hardware