Merge "Revert "Refine documentation for Process.setThreadPriority"" am: fe6160ab9c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1440031 Change-Id: Ib2734db1b8a0e162088410fa7264ad8f1a5c4519
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user