Paulex Yang wrote:
Actually I propose the default value of "interrupt action" is null, which means the VM will do what it suppose to do for the general cases(wait(), join(), etc) as before, so the interrupt() might looks like:

public void interrupt(){
   if(action != null){
      action.run();
   }
   //call native method to do what it supposed to do
   interruptImpl();
}

If you do that, and the VM uses signals, then interruptImpl() is going to unexpectedly
wake up your NIO threads with a signal, right?

-Archie

__________________________________________________________________________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to