ATTN Windows Users: RFC - GCJ/MinGW and Thread-Safe Exception Handling
Jeroen Frijters
jeroen@sumatra.nl
Thu Jul 6 07:35:00 GMT 2006
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
More information about the Java
mailing list