summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cpp/include/IceUtil/Thread.h2
-rw-r--r--cpp/src/IceUtil/Thread.cpp4
2 files changed, 5 insertions, 1 deletions
diff --git a/cpp/include/IceUtil/Thread.h b/cpp/include/IceUtil/Thread.h
index 5f2e6b837c4..f740c13da55 100644
--- a/cpp/include/IceUtil/Thread.h
+++ b/cpp/include/IceUtil/Thread.h
@@ -95,7 +95,7 @@ private:
// with the default constructor. Only needed to enforce our
// portable join/detach behavior.
//
- const bool _detachable;
+ bool _detachable;
#endif
};
diff --git a/cpp/src/IceUtil/Thread.cpp b/cpp/src/IceUtil/Thread.cpp
index 50dc6cf5d47..4b1efb5bb58 100644
--- a/cpp/src/IceUtil/Thread.cpp
+++ b/cpp/src/IceUtil/Thread.cpp
@@ -140,6 +140,10 @@ WINAPI startHook(void* arg)
cerr << "IceUtil::Thread::run(): uncaught exception: ";
cerr << e << endl;
}
+ catch(...)
+ {
+ cerr << "IceUtil::Thread::run(): uncaught exception" << endl;
+ }
thread->_done();
return 0;