summaryrefslogtreecommitdiff
path: root/cpp/src/IceUtil/Thread.cpp
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2008-04-19 16:23:01 -0400
committerBernard Normier <bernard@zeroc.com>2008-04-19 16:23:01 -0400
commit2431487330419d1433df25079034720fd06ef411 (patch)
treeaafdc9ddf251f9db37842cec1ed1cb553e75ca09 /cpp/src/IceUtil/Thread.cpp
parentFixed bug #2982 (diff)
downloadice-2431487330419d1433df25079034720fd06ef411.tar.bz2
ice-2431487330419d1433df25079034720fd06ef411.tar.xz
ice-2431487330419d1433df25079034720fd06ef411.zip
Fixed bug #2863
Diffstat (limited to 'cpp/src/IceUtil/Thread.cpp')
-rw-r--r--cpp/src/IceUtil/Thread.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/cpp/src/IceUtil/Thread.cpp b/cpp/src/IceUtil/Thread.cpp
index 55ae4847328..f9d7290951c 100644
--- a/cpp/src/IceUtil/Thread.cpp
+++ b/cpp/src/IceUtil/Thread.cpp
@@ -148,15 +148,11 @@ WINAPI startHook(void* arg)
rawThread->__decRef();
thread->run();
}
- catch(const IceUtil::Exception& e)
- {
- cerr << "IceUtil::Thread::run(): uncaught exception: ";
- cerr << e << endl;
- }
catch(...)
{
- cerr << "IceUtil::Thread::run(): uncaught exception" << endl;
+ std::terminate();
}
+
thread->_done();
return 0;
@@ -366,15 +362,11 @@ startHook(void* arg)
rawThread->__decRef();
thread->run();
}
- catch(const IceUtil::Exception& e)
- {
- cerr << "IceUtil::Thread::run(): uncaught exception: ";
- cerr << e << endl;
- }
catch(...)
{
- cerr << "IceUtil::Thread::run(): uncaught exception" << endl;
+ std::terminate();
}
+
thread->_done();
return 0;