summaryrefslogtreecommitdiff
path: root/cpp/src/IceUtil/ThreadException.cpp
diff options
context:
space:
mode:
authorMichi Henning <michi@zeroc.com>2002-12-02 04:56:39 +0000
committerMichi Henning <michi@zeroc.com>2002-12-02 04:56:39 +0000
commitc3b16c1d6638143ec4334775846b2d2c7b4f3d96 (patch)
tree641015f47f4647cd6657e322a1acaf7749b61605 /cpp/src/IceUtil/ThreadException.cpp
parentfile IncomingAsyncF.h was initially added on branch amd. (diff)
downloadice-c3b16c1d6638143ec4334775846b2d2c7b4f3d96.tar.bz2
ice-c3b16c1d6638143ec4334775846b2d2c7b4f3d96.tar.xz
ice-c3b16c1d6638143ec4334775846b2d2c7b4f3d96.zip
Added ThreadStartedException and appropriate test in Thread::start() to
catch re-use of a Thread object.
Diffstat (limited to 'cpp/src/IceUtil/ThreadException.cpp')
-rw-r--r--cpp/src/IceUtil/ThreadException.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/cpp/src/IceUtil/ThreadException.cpp b/cpp/src/IceUtil/ThreadException.cpp
index 709a048df30..6860de992aa 100644
--- a/cpp/src/IceUtil/ThreadException.cpp
+++ b/cpp/src/IceUtil/ThreadException.cpp
@@ -102,3 +102,26 @@ IceUtil::ThreadLockedException::ice_throw() const
{
throw *this;
}
+
+IceUtil::ThreadStartedException::ThreadStartedException(const char* file, int line) :
+ Exception(file, line)
+{
+}
+
+string
+IceUtil::ThreadStartedException::ice_name() const
+{
+ return "IceUtil::ThreadStartedException";
+}
+
+IceUtil::Exception*
+IceUtil::ThreadStartedException::ice_clone() const
+{
+ return new ThreadStartedException(*this);
+}
+
+void
+IceUtil::ThreadStartedException::ice_throw() const
+{
+ throw *this;
+}