From 68ae301831b372ee873d275efdcc8f177e4c571f Mon Sep 17 00:00:00 2001 From: Alessio Balsini Date: Wed, 7 Jun 2017 11:41:33 +0200 Subject: Documentation: changed tid parameter description for getThreadPriority() Wrong description of the "tid" parameter used by getThreadPriority(): the function does not "change" the priority of the thread associated to "tid". Defined also the meaning of setting tid parameter to 0. Test: None Change-Id: I8552f3b110eaab1aefa51477e82d3e295547be34 Signed-off-by: Alessio Balsini --- core/java/android/os/Process.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/java/android/os/Process.java') diff --git a/core/java/android/os/Process.java b/core/java/android/os/Process.java index d6688e3c00f7..d5e240a8e211 100644 --- a/core/java/android/os/Process.java +++ b/core/java/android/os/Process.java @@ -740,7 +740,8 @@ public class Process { /** * Return the current 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. If tid equals zero, the priority of the + * calling process/thread will be returned. * * @return Returns the current priority, as a Linux priority level, * from -20 for highest scheduling priority to 19 for lowest scheduling -- cgit v1.2.3