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:
Greg Wilkins 2010-04-20 22:43:42 +00:00
parent 4d20d65455
commit c0b88885b1
1 changed files with 4 additions and 0 deletions

View File

@ -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;