Move definition of configureRpcThreadpool.
Functions in headers should only depend on functions that you are
exporting. Otherwise, modules must link against dependencies of this
module.
Test: binderized marlin boots and works
Merged-In: If252dc517d37af8d3621f06d04c89361c4ae8df6
Change-Id: If252dc517d37af8d3621f06d04c89361c4ae8df6
diff --git a/transport/HidlBinderSupport.cpp b/transport/HidlBinderSupport.cpp
index de4519b..30c2323 100644
--- a/transport/HidlBinderSupport.cpp
+++ b/transport/HidlBinderSupport.cpp
@@ -185,5 +185,13 @@
return status;
}
+void configureBinderRpcThreadpool(size_t maxThreads, bool callerWillJoin) {
+ ProcessState::self()->setThreadPoolConfiguration(maxThreads, callerWillJoin /*callerJoinsPool*/);
+}
+
+void joinBinderRpcThreadpool() {
+ IPCThreadState::self()->joinThreadPool();
+}
+
} // namespace hardware
} // namespace android