diff options
Diffstat (limited to 'cpp/src/Ice/ThreadPool.h')
-rw-r--r-- | cpp/src/Ice/ThreadPool.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cpp/src/Ice/ThreadPool.h b/cpp/src/Ice/ThreadPool.h index 9b7863643e2..0f1dd99fb71 100644 --- a/cpp/src/Ice/ThreadPool.h +++ b/cpp/src/Ice/ThreadPool.h @@ -16,6 +16,7 @@ #include <IceUtil/Thread.h> #include <Ice/Config.h> +#include <Ice/Dispatcher.h> #include <Ice/ThreadPoolF.h> #include <Ice/InstanceF.h> #include <Ice/LoggerF.h> @@ -162,6 +163,19 @@ public: virtual void execute(ThreadPoolCurrent&) = 0; }; +class DispatchWorkItem : public ThreadPoolWorkItem, public Ice::DispatcherCall +{ +public: + + DispatchWorkItem(const InstancePtr&); + + virtual void execute(ThreadPoolCurrent&); + +private: + + const InstancePtr _instance; +}; + class ThreadPoolWorkQueue : public EventHandler, public IceUtil::Mutex { public: |