harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Archie Cobbs <arc...@dellroad.org>
Subject Re: [Fwd: [classlib][NIO|VMI]Interruptible channel implementation - how to interact with Thread?]
Date Thu, 22 Jun 2006 16:06:20 GMT
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 
wake up your NIO threads with a signal, right?


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

Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org

View raw message