From c3648a82f108d95fe61174e468085826e9f6a2af Mon Sep 17 00:00:00 2001 From: Rick Yiu Date: Fri, 10 Jan 2020 15:41:55 +0800 Subject: Refine documentation for Process.setThreadPriority Add more description for the tid parameter. Bug: 139521784 Test: compile Change-Id: I5ccfef865d49207172df301520cf38e942e03e21 --- core/java/android/os/Process.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'core/java/android/os/Process.java') diff --git a/core/java/android/os/Process.java b/core/java/android/os/Process.java index 1130f1db6256..c94c74a4ce22 100644 --- a/core/java/android/os/Process.java +++ b/core/java/android/os/Process.java @@ -740,11 +740,12 @@ public class Process { /** * Set the priority of a thread, based on Linux priorities. - * - * @param tid The identifier of the thread/process to change. + * + * @param tid The identifier of the thread/process to change. It should be + * the native thread id but not the managed id of {@link java.lang.Thread}. * @param priority A Linux priority level, from -20 for highest scheduling * priority to 19 for lowest scheduling priority. - * + * * @throws IllegalArgumentException Throws IllegalArgumentException if * tid does not exist. * @throws SecurityException Throws SecurityException if your process does -- cgit v1.2.3