diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2020-01-18 02:59:23 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2020-01-18 02:59:23 +0000 |
commit | 4fb43701bff65d824744af30a98abc2e23a8b77c (patch) | |
tree | c9291d0d9684729c25998c6df1d97c83802de34e | |
parent | bdaed6e54d81bcd19cc9ec49635409641c642c94 (diff) | |
parent | 84c1e8e1097ef393513cbccb9b0c7e519311326d (diff) |
Merge "Refine documentation of getNativeTid() function"
-rw-r--r-- | ojluni/src/main/java/java/lang/Thread.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ojluni/src/main/java/java/lang/Thread.java b/ojluni/src/main/java/java/lang/Thread.java index bc46b82e5e..699a1ac539 100644 --- a/ojluni/src/main/java/java/lang/Thread.java +++ b/ojluni/src/main/java/java/lang/Thread.java @@ -2341,9 +2341,13 @@ class Thread implements Runnable { // Android-added: Android specific nativeGetStatus() method. private native int nativeGetStatus(boolean hasBeenStarted); - // Android-added: Customize behavior of Thread.setPriority(). http://b/139521784 - // Note: this function returns the tid of native thread, which is different than - // the managed tid of Thread. + // BEGIN Android-added: Customize behavior of Thread.setPriority(). http://b/139521784 + /** + * Returns the thread ID of the underlying native thread -- which is different from + * the {@link #getId() managed thread ID} -- or 0 if the native thread is not + * started or has stopped. + */ @FastNative private native int getNativeTid(); + // END Android-added: Customize behavior of Thread.setPriority(). http://b/139521784 } |