ThreadGroup.java: Fixed now-erroneous comment.
* java/lang/ThreadGroup.java: Fixed now-erroneous comment. * java/lang/natThread.cc (finish_): Call ThreadGroup.remove. From-SVN: r28753
This commit is contained in:
parent
b30f05db01
commit
5a0eb8326f
3 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
1999-08-18 Tom Tromey <tromey@cygnus.com>
|
||||||
|
|
||||||
|
* java/lang/ThreadGroup.java: Fixed now-erroneous comment.
|
||||||
|
* java/lang/natThread.cc (finish_): Call ThreadGroup.remove.
|
||||||
|
|
||||||
1999-08-18 Tom Tromey <tromey@cygnus.com>
|
1999-08-18 Tom Tromey <tromey@cygnus.com>
|
||||||
|
|
||||||
* include/javaprims.h ("Java"): Regenerated namespace decls.
|
* include/javaprims.h ("Java"): Regenerated namespace decls.
|
||||||
|
|
|
@ -80,9 +80,7 @@ public class ThreadGroup
|
||||||
}
|
}
|
||||||
|
|
||||||
// This is called by the Thread code to remove a Thread from our
|
// This is called by the Thread code to remove a Thread from our
|
||||||
// internal list. FIXME: currently, it isn't called at all. There
|
// internal list.
|
||||||
// doesn't appear to be any way to remove a Thread from a
|
|
||||||
// ThreadGroup (except the unimplemented destroy method).
|
|
||||||
final void remove (Thread t)
|
final void remove (Thread t)
|
||||||
{
|
{
|
||||||
threads.removeElement(t);
|
threads.removeElement(t);
|
||||||
|
|
|
@ -250,6 +250,8 @@ java::lang::Thread::finish_ (void)
|
||||||
_Jv_MutexUnlock (&t->interrupt_mutex);
|
_Jv_MutexUnlock (&t->interrupt_mutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
group->remove (this);
|
||||||
|
|
||||||
_Jv_MonitorExit (this);
|
_Jv_MonitorExit (this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue