Revert NioEventLoop.hasTasks() which is not really true

This commit is contained in:
Trustin Lee 2013-03-22 12:46:31 +09:00
parent 1bad0b48cf
commit d525295d20

View File

@ -134,12 +134,6 @@ public final class NioEventLoop extends SingleThreadEventLoop {
return new ConcurrentLinkedQueue<Runnable>();
}
@Override
protected boolean hasTasks() {
// ConcurrentLinkedQueue.isEmpty() is not accurate enough when tasks are added from different threads.
return peekTask() != null;
}
/**
* Registers an arbitrary {@link SelectableChannel}, not necessarily created by Netty, to the {@link Selector}
* of this event loop. Once the specified {@link SelectableChannel} is registered, the specified {@code task} will