Thread.interrupt
Tom Tromey
tromey@redhat.com
Sat Jan 13 11:20:00 GMT 2001
I saw this in posix-threads.cc:_Jv_ThreadInterrupt():
// Interrupt blocking system calls using a signal.
// pthread_kill (data->thread, INTR);
Doesn't commenting this out mean that Thread.interrupt() will no
longer interrupt I/O operations?
This came up while I was looking at PR 1351.
I could change _Jv_select to throw InterruptedIOException, and I
probably will, but this is less useful if Thread.interrupt() doesn't
actually interrupt the I/O.
Tom
More information about the Java
mailing list