[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [cp-patches] Patch: Thread addon for shutdown hooks.
From: |
Jeroen Frijters |
Subject: |
RE: [cp-patches] Patch: Thread addon for shutdown hooks. |
Date: |
Fri, 30 Jul 2004 10:48:44 +0200 |
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.
Regards,
Jeroen