summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2023-01-28 00:02:09 +0000
committer Steven Moreland <smoreland@google.com> 2023-01-28 00:02:12 +0000
commit97f11f6b14fb9047687115950725a7d7c7bca487 (patch)
treed7ccea6cfc145931ad4a98cff62c100951e11b91
parente58d88c6971d2cd1018dc701fcd61755f3d7aa04 (diff)
libbinder: doc giveThreadPoolName
Change-Id: I8040e8064907c7283edb78d04e965cad609f3a99 Fixes: 266792385 Test: N/A
-rw-r--r--libs/binder/include/binder/ProcessState.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/binder/include/binder/ProcessState.h b/libs/binder/include/binder/ProcessState.h
index bad8cb1bed..471c9949aa 100644
--- a/libs/binder/include/binder/ProcessState.h
+++ b/libs/binder/include/binder/ProcessState.h
@@ -64,6 +64,11 @@ public:
// For main functions - dangerous for libraries to use
status_t setThreadPoolMaxThreadCount(size_t maxThreads);
status_t enableOnewaySpamDetection(bool enable);
+
+ // Set the name of the current thread to look like a threadpool
+ // thread. Typically this is called before joinThreadPool.
+ //
+ // TODO: remove this API, and automatically set it intelligently.
void giveThreadPoolName();
String8 getDriverName();