summaryrefslogtreecommitdiff
path: root/cpp/include/IceUtil/Thread.h
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2002-11-29 01:21:57 +0000
committerMichi Henning <michi@zeroc.com>2002-11-29 01:21:57 +0000
commit766f282e643d7172fec11ca221085233a912f392 (patch)
treee0fde9bca84518185f8c8c92fdeee2f78d75fc3f /cpp/include/IceUtil/Thread.h
parentAdded ThreadControl::detach(). (diff)
downloadice-766f282e643d7172fec11ca221085233a912f392.tar.bz2
ice-766f282e643d7172fec11ca221085233a912f392.tar.xz
ice-766f282e643d7172fec11ca221085233a912f392.zip
Improved comments for join() and detach().
Diffstat (limited to 'cpp/include/IceUtil/Thread.h')
-rw-r--r--cpp/include/IceUtil/Thread.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/include/IceUtil/Thread.h b/cpp/include/IceUtil/Thread.h
index b7ffea27c9e..1e5634d2c18 100644
--- a/cpp/include/IceUtil/Thread.h
+++ b/cpp/include/IceUtil/Thread.h
@@ -70,14 +70,17 @@ public:
// At most one thread can wait for the termination of a given
// thread.C alling join on a thread on which another thread is
// already waiting for termination results in undefined behaviour.
+ // Joining with a thread after having joined with it previously,
+ // or joining with a detached thread raises ThreadSyscallException.
//
void join();
//
// Detach a thread. Once a thread is detached, it cannot be detached
// again, nor can it be joined with. Every thread must either be
- // joined with or detached exactly once. Failing to do so results
- // in resource leaks.
+ // joined with or detached exactly once. Detaching a thread a second
+ // time, or detaching a thread that was previously joined with raises
+ // ThreadSyscallException.
//
void detach();