diff options
author | Gary Benson <gbenson@redhat.com> | 2006-11-30 09:30:28 +0000 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2006-11-30 09:30:28 +0000 |
commit | 58bbb4ac7e73952968767fe86fdfa1047843f342 (patch) | |
tree | 325e8a73c3453d1782f922ffe8e49696d9738781 | |
parent | c3d922c8516a15538552865bb95c2ff8156a39dd (diff) | |
download | classpath-58bbb4ac7e73952968767fe86fdfa1047843f342.tar.gz |
2006-11-30 Gary Benson <gbenson@redhat.com>
* java/lang/Thread.java: Javadoc fixes.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | java/lang/Thread.java | 8 |
2 files changed, 10 insertions, 2 deletions
@@ -1,3 +1,7 @@ +2006-11-30 Gary Benson <gbenson@redhat.com> + + * java/lang/Thread.java: Javadoc fixes. + 2006-11-29 Tania Bento <tbento@redhat.com> * tools/gnu/classpath/tools/appletviewer/TagParser.java: diff --git a/java/lang/Thread.java b/java/lang/Thread.java index 36b7c3303..5f70f558f 100644 --- a/java/lang/Thread.java +++ b/java/lang/Thread.java @@ -850,11 +850,13 @@ public class Thread implements Runnable * are no guarantees which thread will be next to run, but most VMs will * choose the highest priority thread that has been waiting longest. * - * @param ms the number of milliseconds to sleep. + * @param ms the number of milliseconds to sleep, or 0 for forever * @throws InterruptedException if the Thread is (or was) interrupted; * it's <i>interrupted status</i> will be cleared * @throws IllegalArgumentException if ms is negative * @see #interrupt() + * @see #notify() + * @see #wait(long) */ public static void sleep(long ms) throws InterruptedException { @@ -874,13 +876,15 @@ public class Thread implements Runnable * immediately when time expires, because some other thread may be * active. So don't expect real-time performance. * - * @param ms the number of milliseconds to sleep + * @param ms the number of milliseconds to sleep, or 0 for forever * @param ns the number of extra nanoseconds to sleep (0-999999) * @throws InterruptedException if the Thread is (or was) interrupted; * it's <i>interrupted status</i> will be cleared * @throws IllegalArgumentException if ms or ns is negative * or ns is larger than 999999. * @see #interrupt() + * @see #notify() + * @see #wait(long, int) */ public static void sleep(long ms, int ns) throws InterruptedException { |