summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ThreadPool.h
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2012-08-09 10:20:56 +0200
committerBenoit Foucher <benoit@zeroc.com>2012-08-09 10:20:56 +0200
commit62f9ccfd51f985db0539d9af7030c0461bb23008 (patch)
treef42692c3240096e7eb400bd698125ceeec11e436 /cpp/src/Ice/ThreadPool.h
parentMerge remote-tracking branch 'origin/encoding11' into mx (diff)
downloadice-62f9ccfd51f985db0539d9af7030c0461bb23008.tar.bz2
ice-62f9ccfd51f985db0539d9af7030c0461bb23008.tar.xz
ice-62f9ccfd51f985db0539d9af7030c0461bb23008.zip
Fix
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;