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.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/Ice/ThreadPool.h b/cpp/src/Ice/ThreadPool.h
index 005a19459df..73e3bc1e2d1 100644
--- a/cpp/src/Ice/ThreadPool.h
+++ b/cpp/src/Ice/ThreadPool.h
@@ -43,7 +43,7 @@ class ThreadPool : public IceUtil::Shared, public IceUtil::Monitor<IceUtil::Mute
{
public:
- EventHandlerThread(const ThreadPoolPtr&);
+ EventHandlerThread(const ThreadPoolPtr&, const std::string&);
virtual void run();
void updateObserver();
@@ -97,11 +97,14 @@ private:
bool followerWait(ThreadPoolCurrent&);
#endif
+ std::string nextThreadId();
+
const InstancePtr _instance;
ThreadPoolWorkQueuePtr _workQueue;
bool _destroyed;
const std::string _prefix;
Selector _selector;
+ int _nextThreadId;
friend class EventHandlerThread;
friend class ThreadPoolCurrent;