summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Normier <bernard@zeroc.com>2006-03-03 16:40:27 +0000
committerBernard Normier <bernard@zeroc.com>2006-03-03 16:40:27 +0000
commit7de5e5a6670fc0a57419a1cfe4b7a83c51a11d31 (patch)
treea805d1544a1b0204027adb646681683224fd203f
parentBetter fix for bug #824 (diff)
downloadice-7de5e5a6670fc0a57419a1cfe4b7a83c51a11d31.tar.bz2
ice-7de5e5a6670fc0a57419a1cfe4b7a83c51a11d31.tar.xz
ice-7de5e5a6670fc0a57419a1cfe4b7a83c51a11d31.zip
fixed build failure
-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;