diff options
author | Michi Henning <michi@zeroc.com> | 2003-03-10 01:27:01 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2003-03-10 01:27:01 +0000 |
commit | 889e1b049ebb34b57edf9ae62760fcb6e3fca95f (patch) | |
tree | 433acbcb23986b7e260c138f8239ef36dace7cf7 /cpp/include/IceUtil/Thread.h | |
parent | dyn thread pool (diff) | |
download | ice-889e1b049ebb34b57edf9ae62760fcb6e3fca95f.tar.bz2 ice-889e1b049ebb34b57edf9ae62760fcb6e3fca95f.tar.xz ice-889e1b049ebb34b57edf9ae62760fcb6e3fca95f.zip |
Added IceUtil::ThreadControl::isAlive() member function.
Diffstat (limited to 'cpp/include/IceUtil/Thread.h')
-rw-r--r-- | cpp/include/IceUtil/Thread.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cpp/include/IceUtil/Thread.h b/cpp/include/IceUtil/Thread.h index 01db982d90f..5dbc94365a0 100644 --- a/cpp/include/IceUtil/Thread.h +++ b/cpp/include/IceUtil/Thread.h @@ -84,6 +84,12 @@ public: // void detach(); + // + // Check whether a thread is still alive. This is useful to implement + // a non-blocking join(). + // + bool isAlive() const; + static void sleep(const Time&); static void yield(); |