diff options
author | Matthew Newhook <matthew@zeroc.com> | 2006-09-04 01:14:49 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2006-09-04 01:14:49 +0000 |
commit | 25aff3e218350ea323a55ca7fa4247d9da61aac7 (patch) | |
tree | 2f04fb173eacceb007dda8696414c1d370f4c442 /cpp/src/IceGrid/ReapThread.h | |
parent | fixing a bug with generated #include statements (diff) | |
download | ice-25aff3e218350ea323a55ca7fa4247d9da61aac7.tar.bz2 ice-25aff3e218350ea323a55ca7fa4247d9da61aac7.tar.xz ice-25aff3e218350ea323a55ca7fa4247d9da61aac7.zip |
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=1331
Diffstat (limited to 'cpp/src/IceGrid/ReapThread.h')
-rw-r--r-- | cpp/src/IceGrid/ReapThread.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cpp/src/IceGrid/ReapThread.h b/cpp/src/IceGrid/ReapThread.h index 0c8f8e62e3f..d4713de7726 100644 --- a/cpp/src/IceGrid/ReapThread.h +++ b/cpp/src/IceGrid/ReapThread.h @@ -39,12 +39,18 @@ public: virtual void run(); void terminate(); void add(const ReapablePtr&); + void add(const ReapablePtr&, int); private: const IceUtil::Time _timeout; bool _terminated; - std::list<ReapablePtr> _sessions; + struct ReapableItem + { + ReapablePtr item; + IceUtil::Time timeout; + }; + std::list<ReapableItem> _sessions; }; typedef IceUtil::Handle<ReapThread> ReapThreadPtr; |