summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ThreadPool.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/ThreadPool.h')
-rw-r--r--cpp/src/Ice/ThreadPool.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/src/Ice/ThreadPool.h b/cpp/src/Ice/ThreadPool.h
index c6db0465bee..3a440f5ca32 100644
--- a/cpp/src/Ice/ThreadPool.h
+++ b/cpp/src/Ice/ThreadPool.h
@@ -132,7 +132,11 @@ private:
std::string nextThreadId();
const InstancePtr _instance;
+#ifdef ICE_CPP11_MAPPING
+ std::function<void (std::function<void ()>, const std::shared_ptr<Ice::Connection>&)> _dispatcher;
+#else
const Ice::DispatcherPtr _dispatcher;
+#endif
ThreadPoolWorkQueuePtr _workQueue;
bool _destroyed;
const std::string _prefix;