This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
RE: Re: ATTN Windows Users: RFC - GCJ/MinGW and Thread-Safe Exception Handling
- From: "Jeroen Frijters" <jeroen at sumatra dot nl>
- To: "Adam Megacz" <megacz at cs dot berkeley dot edu>, <java at gcc dot gnu dot org>
- Date: Thu, 6 Jul 2006 09:35:31 +0200
- Subject: RE: Re: ATTN Windows Users: RFC - GCJ/MinGW and Thread-Safe Exception Handling
Adam Megacz wrote:
> I think I'm guilty of putting this into win32.cc in the first place.
>
> At the time I know that it was the only alternative to depending on a
> DLL. I don't remember the precise details, but at the time, the only
> way to be notified of a thread termination on Win32 was to load a DLL
> (DLL's are notified of thread creations/deaths in their process) --
> the Win32 API simply didn't have any other way for a process to
> register to be notified of that sort of thing.
>
> Has this changed?
It hasn't changed, but if you're willing to dedicate a thread to this,
you can certainly get notified of thread death. Do a
WaitForMultipleObjects on an array of thread handles. A thread handle
will be signaled when the thread terminates.
Regards,
Jeroen