diff options
author | Benoit Foucher <benoit@zeroc.com> | 2009-08-21 15:55:01 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2009-08-21 15:55:01 +0200 |
commit | b9f2fa14fb3f222a6ec5e0a93bf25fe5ad12b56a (patch) | |
tree | 183215e2dbeadfbc871b800ce09726e58af38b91 /cpp/src/Ice/ConnectRequestHandler.cpp | |
parent | adding compression cookbook demo (diff) | |
download | ice-b9f2fa14fb3f222a6ec5e0a93bf25fe5ad12b56a.tar.bz2 ice-b9f2fa14fb3f222a6ec5e0a93bf25fe5ad12b56a.tar.xz ice-b9f2fa14fb3f222a6ec5e0a93bf25fe5ad12b56a.zip |
IOCP changes, bug 3501, 4200, 4156, 3101
Diffstat (limited to 'cpp/src/Ice/ConnectRequestHandler.cpp')
-rw-r--r-- | cpp/src/Ice/ConnectRequestHandler.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cpp/src/Ice/ConnectRequestHandler.cpp b/cpp/src/Ice/ConnectRequestHandler.cpp index 5953691c640..f400b03d418 100644 --- a/cpp/src/Ice/ConnectRequestHandler.cpp +++ b/cpp/src/Ice/ConnectRequestHandler.cpp @@ -36,9 +36,9 @@ public: } virtual void - execute(const ThreadPoolPtr& threadPool) + execute(ThreadPoolCurrent& current) { - threadPool->promoteFollower(); + current.ioCompleted(); _handler->flushRequestsWithException(*_exception.get()); } @@ -59,9 +59,9 @@ public: } virtual void - execute(const ThreadPoolPtr& threadPool) + execute(ThreadPoolCurrent& current) { - threadPool->promoteFollower(); + current.ioCompleted(); _handler->flushRequestsWithException(_exception); } @@ -81,9 +81,9 @@ public: } virtual void - execute(const ThreadPoolPtr& threadPool) + execute(ThreadPoolCurrent& current) { - threadPool->promoteFollower(); + current.ioCompleted(); for(vector<OutgoingAsyncMessageCallbackPtr>::const_iterator p = _callbacks.begin(); p != _callbacks.end(); ++p) { (*p)->__sentCallback(_instance); @@ -438,14 +438,14 @@ ConnectRequestHandler::flushRequests() req.os->i = req.os->b.begin(); req.os->readBlob(bytes, req.os->b.size()); os.writeBlob(bytes, req.os->b.size()); - _connection->finishBatchRequest(&os, _compress); - delete req.os; } catch(const Ice::LocalException&) { _connection->abortBatchRequest(); throw; } + _connection->finishBatchRequest(&os, _compress); + delete req.os; } _requests.pop_front(); } |