void updateRegistrations() { synchronized (updateList) { Update u = null; while ((u = updateList.poll()) != null) { SelChImpl ch = u.channel; if (!ch.isOpen()) continue; register0(kq, ch.getFDVal(), u.events & POLLIN, u.events & POLLOUT); } } }
void updateRegistrations() { synchronized (updateList) { Update u = null; while ((u = updateList.poll()) != null) { SelChImpl ch = u.channel; if (!ch.isOpen()) continue; register0(kq, ch.getFDVal(), u.events & POLLIN, u.events & POLLOUT); } } }