summaryrefslogtreecommitdiff
path: root/cpp/src/IceStorm/Flusher.cpp
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2003-08-29 06:51:58 +0000
committerMichi Henning <michi@zeroc.com>2003-08-29 06:51:58 +0000
commit14e46bc24e79df49bd603c08d293c17245b9ca93 (patch)
treec7fc6f422c2a0706ed5e3926a091aa715ee41021 /cpp/src/IceStorm/Flusher.cpp
parentconnection closure timeout (diff)
downloadice-14e46bc24e79df49bd603c08d293c17245b9ca93.tar.bz2
ice-14e46bc24e79df49bd603c08d293c17245b9ca93.tar.xz
ice-14e46bc24e79df49bd603c08d293c17245b9ca93.zip
Removed ice_flush() from proxy base class and implemented
Communicator::flushBatchRequests().
Diffstat (limited to 'cpp/src/IceStorm/Flusher.cpp')
-rw-r--r--cpp/src/IceStorm/Flusher.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/src/IceStorm/Flusher.cpp b/cpp/src/IceStorm/Flusher.cpp
index 4ef6b3374d1..302d9160b2f 100644
--- a/cpp/src/IceStorm/Flusher.cpp
+++ b/cpp/src/IceStorm/Flusher.cpp
@@ -35,6 +35,7 @@ class FlusherThread : public IceUtil::Thread, public IceUtil::Monitor<IceUtil::M
public:
FlusherThread(const Ice::CommunicatorPtr& communicator, const TraceLevelsPtr& traceLevels) :
+ _communicator(communicator),
_traceLevels(traceLevels),
_destroy(false)
{
@@ -131,7 +132,8 @@ private:
//
_subscribers.erase(remove_if(_subscribers.begin(), _subscribers.end(),
IceUtil::constMemFun(&Flushable::inactive)), _subscribers.end());
- for_each(_subscribers.begin(), _subscribers.end(), IceUtil::voidMemFun(&Flushable::flush));
+
+ _communicator->flushBatchRequests();
//
// Trace after the flush so that the correct number of objects
@@ -150,8 +152,8 @@ private:
return (_subscribers.empty()) ? 0 : _flushTime;
}
+ Ice::CommunicatorPtr _communicator;
TraceLevelsPtr _traceLevels;
-
FlushableList _subscribers;
bool _destroy;
long _flushTime;