summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2018-06-05 15:36:42 -0700
committerYabin Cui <yabinc@google.com>2018-06-06 14:58:30 -0700
commit0695b994762cab51cb2b7d3c95b066be215897b9 (patch)
tree976f25922a71c4550872238030696a4ed46177fa
parentb825372059de634f05ea3a2834b9a7fed0187243 (diff)
downloadlibhwbinder-0695b994762cab51cb2b7d3c95b066be215897b9.tar.gz
Bug: 77473515 Test: Boot device successfully. Change-Id: I729c74f76a289cbece1a443dc801ec1af090582a
-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