summaryrefslogtreecommitdiffstats
path: root/include/utils
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2013-03-07 15:34:28 -0800
committerAlex Ray <aray@google.com>2013-07-30 13:57:01 -0700
commit6090df85a8a227db0bf407b7877b2777937e6427 (patch)
treea51930614eb84a2269cc4800cd98e4ed38180f33 /include/utils
parent769828d2d44fca3829e628bb424aa426aa468ee9 (diff)
downloadsystem_core-6090df85a8a227db0bf407b7877b2777937e6427.zip
system_core-6090df85a8a227db0bf407b7877b2777937e6427.tar.gz
system_core-6090df85a8a227db0bf407b7877b2777937e6427.tar.bz2
rename binder services main thread to Binder_*
When a binder service's main thread joins the thread pool it retains its name (whatever the exec name was), which is very confusing in systrace. we now rename that thread just like its friends in the thread pool. Change-Id: Ibb3b6ff07304b247cfc6fb1694e72350c579513e
Diffstat (limited to 'include/utils')
-rw-r--r--include/utils/AndroidThreads.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/utils/AndroidThreads.h b/include/utils/AndroidThreads.h
index f67648f..4eee14d 100644
--- a/include/utils/AndroidThreads.h
+++ b/include/utils/AndroidThreads.h
@@ -56,6 +56,9 @@ extern int androidCreateRawThreadEtc(android_thread_func_t entryFunction,
size_t threadStackSize,
android_thread_id_t *threadId);
+// set the same of the running thread
+extern void androidSetThreadName(const char* name);
+
// Used by the Java Runtime to control how threads are created, so that
// they can be proper and lovely Java threads.
typedef int (*android_create_thread_fn)(android_thread_func_t entryFunction,