summaryrefslogtreecommitdiff
path: root/cpp/include/IceUtil/Thread.h
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2009-04-24 13:55:37 -0230
committerDwayne Boone <dwayne@zeroc.com>2009-04-24 13:55:37 -0230
commitb7781c854fc8dc9c02f8abe363c46b8f4f28e859 (patch)
tree4915ec5588dc04bc8f7f99740d1062e4a1898296 /cpp/include/IceUtil/Thread.h
parentBug 3811 - unsubstitued verion strings in READMES (diff)
downloadice-b7781c854fc8dc9c02f8abe363c46b8f4f28e859.tar.bz2
ice-b7781c854fc8dc9c02f8abe363c46b8f4f28e859.tar.xz
ice-b7781c854fc8dc9c02f8abe363c46b8f4f28e859.zip
Bug 2812 - add abilty to name thread
Diffstat (limited to 'cpp/include/IceUtil/Thread.h')
-rw-r--r--cpp/include/IceUtil/Thread.h7
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;