// ********************************************************************** // // Copyright (c) 2003-2006 ZeroC, Inc. All rights reserved. // // This copy of Ice is licensed to you under the terms described in the // ICE_LICENSE file included in this distribution. // // ********************************************************************** #ifndef ICEGRID_REAPER_THREAD_H #define ICEGRID_REAPER_THREAD_H #include #include #include #include namespace IceGrid { class ReapThread : public IceUtil::Thread, public IceUtil::Monitor { public: ReapThread(int); virtual void run(); void terminate(); void add(const Glacier2::SessionPrx&, const SessionIPtr&); private: const IceUtil::Time _timeout; bool _terminated; std::list > _sessions; }; typedef IceUtil::Handle ReapThreadPtr; }; #endif