|
From: | Guilhem Lavaux |
Subject: | Re: [cp-patches] Patch: Thread addon for shutdown hooks. |
Date: | Fri, 30 Jul 2004 10:59:25 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040115 |
Jeroen Frijters wrote:
Guilhem Lavaux wrote:While merging the VMThread model in kaffe, I've noticed that Runtime does not check whether hooks had already been started when they are being added. So I've added one small method to Thread and the corresponding checking in Runtime.addShutdownHook. The error reporting has also been improved by providing messages to exceptions.Comments ?I think this shouldn't be necessary. If getThreadGroup() returns null, that means that the thread was already started and has died.
Agreed. What about the error messages ? Regards, Guilhem.
[Prev in Thread] | Current Thread | [Next in Thread] |