JETTY-1187
git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1533 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
parent
4d20d65455
commit
c0b88885b1
|
@ -104,6 +104,10 @@ public abstract class SelectorManager extends AbstractLifeCycle
|
|||
*/
|
||||
public void register(SocketChannel channel, Object att)
|
||||
{
|
||||
// The ++ increment here is not atomic, but it does not matter.
|
||||
// so long as the value changes sometimes, then connections will
|
||||
// be distributed over the available sets.
|
||||
|
||||
int s=_set++;
|
||||
s=s%_selectSets;
|
||||
SelectSet[] sets=_selectSet;
|
||||
|
|
Loading…
Reference in New Issue