summaryrefslogtreecommitdiff
path: root/core/java/android/os/Process.java
diff options
context:
space:
mode:
authorAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-01-10 10:20:38 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2020-01-10 10:20:38 +0000
commit163d3a1e98f3cc75b954eedc7604d3a52558990c (patch)
tree8820677085a245842bab660fe50898ee375cf99e /core/java/android/os/Process.java
parent3783516bb36c5f795b87ae7c1ddeb216e94722cb (diff)
parent32593a60d00102f4fd3d778eaeb7e8c40758265e (diff)
Merge "Refine documentation for Process.setThreadPriority" am: fd1985993c am: 32593a60d0
Change-Id: Ia3a5995f2687d7727e6927ea842d9aafe34085f1
Diffstat (limited to 'core/java/android/os/Process.java')
-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