diff options
Diffstat (limited to 'cpp/src/Ice/ThreadPool.h')
-rw-r--r-- | cpp/src/Ice/ThreadPool.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/src/Ice/ThreadPool.h b/cpp/src/Ice/ThreadPool.h index d8e0b85dcd1..b7dcbf3cf42 100644 --- a/cpp/src/Ice/ThreadPool.h +++ b/cpp/src/Ice/ThreadPool.h @@ -188,6 +188,11 @@ public: { _threadPool->finishMessage(const_cast<ThreadPoolCurrent&>(*this)); } +#else + bool ioReady() + { + return _handler->_registered & operation; + } #endif void dispatchFromThisThread(const DispatchWorkItemPtr& workItem) @@ -276,7 +281,7 @@ public: operator bool() { - return true; + return _message._current.ioReady(); // Ensure the handler is still interested in the operation. } void completed() |