This commit is contained in:
Trustin Lee 2009-10-27 09:04:42 +00:00
parent 4ec06f7c78
commit 692c278cf9
2 changed files with 2 additions and 2 deletions

View File

@ -125,7 +125,7 @@ class NioDatagramWorker implements Runnable {
*/
private final Queue<Runnable> writeTaskQueue = new LinkedTransferQueue<Runnable>();
private volatile int cancelledKeys;
private volatile int cancelledKeys; // should use AtomicInteger but we just need approximation
/**
* Sole constructor.

View File

@ -76,7 +76,7 @@ class NioWorker implements Runnable {
private final Object startStopLock = new Object();
private final Queue<Runnable> registerTaskQueue = new LinkedTransferQueue<Runnable>();
private final Queue<Runnable> writeTaskQueue = new LinkedTransferQueue<Runnable>();
private volatile int cancelledKeys;
private volatile int cancelledKeys; // should use AtomicInteger but we just need approximation
NioWorker(int bossId, int id, Executor executor) {
this.bossId = bossId;