summaryrefslogtreecommitdiffstats
path: root/vm/Thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm/Thread.h')
-rw-r--r--vm/Thread.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/vm/Thread.h b/vm/Thread.h
index 19bd49c3b..0bf15e637 100644
--- a/vm/Thread.h
+++ b/vm/Thread.h
@@ -608,4 +608,11 @@ void dvmDumpAllThreadsEx(const DebugOutputTarget* target, bool grabLock);
*/
void dvmNukeThread(Thread* thread);
+/*
+ * Sets the thread's name as pointed to by threadName in task_struct->comm.
+ * Note this field has a limited width, and larger values will be truncated
+ * to this width starting from the end.
+ */
+void dvmSetThreadName(const char *threadName);
+
#endif // DALVIK_THREAD_H_