Mercurial Hosting > luan
comparison src/org/eclipse/jetty/io/nio/SelectChannelEndPoint.java @ 950:a778413aefc0
add SaneSelector
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Wed, 12 Oct 2016 14:37:56 -0600 |
parents | e9088af3787f |
children | 669769bcdf5c |
comparison
equal
deleted
inserted
replaced
949:e9088af3787f | 950:a778413aefc0 |
---|---|
500 } | 500 } |
501 | 501 |
502 if(changed) | 502 if(changed) |
503 { | 503 { |
504 doUpdateKey(); | 504 doUpdateKey(); |
505 _selectSet.wakeup(); | 505 _selectSet.getSelector().update(); |
506 } | 506 } |
507 } | 507 } |
508 | 508 |
509 | 509 |
510 /* ------------------------------------------------------------ */ | 510 /* ------------------------------------------------------------ */ |
526 } | 526 } |
527 else | 527 else |
528 { | 528 { |
529 try | 529 try |
530 { | 530 { |
531 _key=((SelectableChannel)getChannel()).register(_selectSet.getSelector(),_interestOps,this); | 531 _key = _selectSet.getSelector().register((SelectableChannel)getChannel(),_interestOps,this); |
532 } | 532 } |
533 catch (Exception e) | 533 catch (Exception e) |
534 { | 534 { |
535 LOG.trace("",e); | 535 LOG.trace("",e); |
536 if (_key!=null && _key.isValid()) | 536 if (_key!=null && _key.isValid()) |