Patch for Review: Thread.interrupt() for MinGW
Bryce McKinlay
bryce@mckinlay.net.nz
Fri Sep 19 03:45:00 GMT 2003
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.
More information about the Java-patches
mailing list