diff options
Diffstat (limited to 'cpp/src/Ice/EventHandler.h')
-rw-r--r-- | cpp/src/Ice/EventHandler.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/cpp/src/Ice/EventHandler.h b/cpp/src/Ice/EventHandler.h index 03c34bc3fe0..88111ce545b 100644 --- a/cpp/src/Ice/EventHandler.h +++ b/cpp/src/Ice/EventHandler.h @@ -46,7 +46,7 @@ public: // Read data via the event handler. May only be called if // readable() returns true. // - virtual void read(BasicStream&) = 0; + virtual bool read(BasicStream&) = 0; // // A complete message has been received. @@ -77,15 +77,21 @@ protected: const InstancePtr _instance; -private: - // - // The _stream data member is for use by ThreadPool only + // The _stream data member is for use by ThreadPool or by the + // connection for connection validation only. // BasicStream _stream; friend class ThreadPool; }; +class ThreadPoolWorkItem : virtual public IceUtil::Shared +{ +public: + + virtual void execute(const ThreadPoolPtr&) = 0; +}; + } #endif |