diff options
Diffstat (limited to 'cpp/include/IceUtil/Thread.h')
-rw-r--r-- | cpp/include/IceUtil/Thread.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/include/IceUtil/Thread.h b/cpp/include/IceUtil/Thread.h index 65284b3b5fd..0d47c810e57 100644 --- a/cpp/include/IceUtil/Thread.h +++ b/cpp/include/IceUtil/Thread.h @@ -104,6 +104,7 @@ class ICE_UTIL_API Thread : virtual public IceUtil::Shared public: Thread(); + Thread(const std::string&); virtual ~Thread(); virtual void run() = 0; @@ -127,7 +128,13 @@ public: // void _done(); + // + // Get the thread name + // + const std::string& name() const; + protected: + const std::string _name; Mutex _stateMutex; bool _started; bool _running; |