This is the mail archive of the java-discuss@sources.redhat.com 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]

Thread.interrupt


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

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