diff options
author | Michi Henning <michi@zeroc.com> | 2002-12-02 04:56:39 +0000 |
---|---|---|
committer | Michi Henning <michi@zeroc.com> | 2002-12-02 04:56:39 +0000 |
commit | c3b16c1d6638143ec4334775846b2d2c7b4f3d96 (patch) | |
tree | 641015f47f4647cd6657e322a1acaf7749b61605 /cpp/src/IceUtil/ThreadException.cpp | |
parent | file IncomingAsyncF.h was initially added on branch amd. (diff) | |
download | ice-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.cpp | 23 |
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; +} |