This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]