summaryrefslogtreecommitdiff
path: root/cpp/include/IceUtil/Thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/include/IceUtil/Thread.h')
-rw-r--r--cpp/include/IceUtil/Thread.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/cpp/include/IceUtil/Thread.h b/cpp/include/IceUtil/Thread.h
index bd7fbcfee7d..47d71dd9942 100644
--- a/cpp/include/IceUtil/Thread.h
+++ b/cpp/include/IceUtil/Thread.h
@@ -98,10 +98,22 @@ public:
bool operator!=(const Thread&) const;
bool operator<(const Thread&) const;
+ //
+ // Is this thread still running?
+ //
+ bool isAlive() const;
+
+ //
+ // This function is an implementation detail;
+ // do not call it.
+ //
+ void done();
+
protected:
Mutex _stateMutex;
-
bool _started;
+ bool _running;
+
#ifdef _WIN32
HANDLE _handle;
DWORD _id;