From b551e63ea77bdc4caba70594feabd6045ab980a7 Mon Sep 17 00:00:00 2001 From: Rick Yiu Date: Sat, 26 Sep 2020 07:18:54 +0000 Subject: [PATCH] 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 --- core/java/android/os/Process.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/core/java/android/os/Process.java b/core/java/android/os/Process.java index 52dd86554e91b..2aa5c13e6e9fe 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 * tid does not exist. * @throws SecurityException Throws SecurityException if your process does