This is the mail archive of the java-patches@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: Patch for Review: Thread.interrupt() for MinGW


On Thursday, Sep 18, 2003, at 23:54 Pacific/Auckland, Mohan Embar wrote:

Gladly. I haven't had the courage to try to figure out how to get DejaGNU
to work with Win32. Anthony Green wrote me and talked about needing a Telnet and
FTP daemon on my Win32 box. It sounds so complicated. I really do need to
figure this out, though, though I'd probably always write my own tests on
top of these.

You can run the individual tests stand-alone if you want - they're just plain Java apps.


Why lazy initialization - wouldn't it be cleaner to set this up during
thread initialization? IIRC there is a hook in the threads interface
for exactly that.

I use the hook to initialize the critical section, but not the event. I am
following Adam's example here, where he warned in the comments that initialization
of a Win32 event is "insanely expensive". I haven't verified this, but it
stands to reason that a thread might never sleep, wait, or get interrupted.

OK, sounds reasonable.


Regards

Bryce.



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