summaryrefslogtreecommitdiff
path: root/cpp/include/IceUtil/ThreadException.h
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/include/IceUtil/ThreadException.h
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/include/IceUtil/ThreadException.h')
-rw-r--r--cpp/include/IceUtil/ThreadException.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/cpp/include/IceUtil/ThreadException.h b/cpp/include/IceUtil/ThreadException.h
index 418f8397974..8417b5516d8 100644
--- a/cpp/include/IceUtil/ThreadException.h
+++ b/cpp/include/IceUtil/ThreadException.h
@@ -44,6 +44,16 @@ public:
virtual Exception* ice_clone() const;
virtual void ice_throw() const;
};
+
+class ICE_UTIL_API ThreadStartedException : public Exception
+{
+public:
+
+ ThreadStartedException(const char*, int);
+ virtual std::string ice_name() const;
+ virtual Exception* ice_clone() const;
+ virtual void ice_throw() const;
+};
}