summaryrefslogtreecommitdiff
path: root/cpp/include/IceUtil/Thread.h
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2006-01-31 01:51:15 +0000
committerBernard Normier <bernard@zeroc.com>2006-01-31 01:51:15 +0000
commit4d7448e622a41c5a6e5fd5f05a20118036139fae (patch)
tree52aa4020efa36cf3b7e63ecbddb41ddc2146f65c /cpp/include/IceUtil/Thread.h
parentDisabled unicode test (diff)
downloadice-4d7448e622a41c5a6e5fd5f05a20118036139fae.tar.bz2
ice-4d7448e622a41c5a6e5fd5f05a20118036139fae.tar.xz
ice-4d7448e622a41c5a6e5fd5f05a20118036139fae.zip
Moved isAlive from ThreadControl to Thread
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;