summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/ThreadPoolCurrent.java
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2014-07-21 11:16:00 +0200
committerBenoit Foucher <benoit@zeroc.com>2014-07-21 11:16:00 +0200
commit6a50ea5b6b2869925172a68bd3337f2f6832b8b5 (patch)
tree1c95012fcb155dbf92def98ed6a3c0280cc325b3 /java/src/IceInternal/ThreadPoolCurrent.java
parentICE-5316 added pos method to BasicStream that works for both read/write (diff)
downloadice-6a50ea5b6b2869925172a68bd3337f2f6832b8b5.tar.bz2
ice-6a50ea5b6b2869925172a68bd3337f2f6832b8b5.tar.xz
ice-6a50ea5b6b2869925172a68bd3337f2f6832b8b5.zip
Fixed race condition which could cause request to be dispatched even if the connection was just put on hold
Diffstat (limited to 'java/src/IceInternal/ThreadPoolCurrent.java')
-rw-r--r--java/src/IceInternal/ThreadPoolCurrent.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/java/src/IceInternal/ThreadPoolCurrent.java b/java/src/IceInternal/ThreadPoolCurrent.java
index 7b81127016c..864f2ba4aab 100644
--- a/java/src/IceInternal/ThreadPoolCurrent.java
+++ b/java/src/IceInternal/ThreadPoolCurrent.java
@@ -25,6 +25,12 @@ public final class ThreadPoolCurrent
public int operation;
public BasicStream stream; // A per-thread stream to be used by event handlers for optimization.
+ public boolean
+ ioReady()
+ {
+ return (_handler._registered & operation) > 0;
+ }
+
public void
ioCompleted()
{