summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Rick Yiu <rickyiu@google.com> 2020-09-26 07:18:54 +0000
committer Rick Yiu <rickyiu@google.com> 2020-09-27 03:09:54 +0000
commitb551e63ea77bdc4caba70594feabd6045ab980a7 (patch)
tree0610370f976a8aa3eca9ff8e0c433e380530f973
parentf29902285a56562b8993a0cbce337bf4c895f406 (diff)
Revert "Refine documentation for Process.setThreadPriority"
This reverts commit c3648a82f108d95fe61174e468085826e9f6a2af. Reason for revert: will cause lock contention Bug: 139521784 Test: build pass Change-Id: Ic10951493ec8dda4e5a5adcbd1c3cb3be3b64782
-rw-r--r--core/java/android/os/Process.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/java/android/os/Process.java b/core/java/android/os/Process.java
index 52dd86554e91..2aa5c13e6e9f 100644
--- a/core/java/android/os/Process.java
+++ b/core/java/android/os/Process.java
@@ -851,12 +851,11 @@ public class Process {
/**
* Set the priority of a thread, based on Linux priorities.
- *
- * @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 tid The identifier of the thread/process to change.
* @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