summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2020-01-10 09:48:44 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-01-10 09:48:44 +0000
commitfd1985993c23de1f99e84cb4fa3b237ff6039737 (patch)
tree5b2915695417c51d1abdf9b671a1151b82db6bd3
parentded6a9e58ea2dc35ad4fdea8f148327a13602340 (diff)
parentc3648a82f108d95fe61174e468085826e9f6a2af (diff)
Merge "Refine documentation for Process.setThreadPriority"
-rw-r--r--core/java/android/os/Process.java7
1 files changed, 4 insertions, 3 deletions
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
* <var>tid</var> does not exist.
* @throws SecurityException Throws SecurityException if your process does