Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50524 - in branches/release/libs/thread/src: pthread win32
From: anthony_at_[hidden]
Date: 2009-01-09 06:06:54


Author: anthonyw
Date: 2009-01-09 06:06:53 EST (Fri, 09 Jan 2009)
New Revision: 50524
URL: http://svn.boost.org/trac/boost/changeset/50524

Log:
Merged change from trunk removing catch(...) clauses
Text files modified:
   branches/release/libs/thread/src/pthread/thread.cpp | 10 ++++++----
   branches/release/libs/thread/src/win32/thread.cpp | 10 ++++++----
   2 files changed, 12 insertions(+), 8 deletions(-)

Modified: branches/release/libs/thread/src/pthread/thread.cpp
==============================================================================
--- branches/release/libs/thread/src/pthread/thread.cpp (original)
+++ branches/release/libs/thread/src/pthread/thread.cpp 2009-01-09 06:06:53 EST (Fri, 09 Jan 2009)
@@ -132,10 +132,12 @@
                 catch(thread_interrupted const&)
                 {
                 }
- catch(...)
- {
- std::terminate();
- }
+// Removed as it stops the debugger identifying the cause of the exception
+// Unhandled exceptions still cause the application to terminate
+// catch(...)
+// {
+// std::terminate();
+// }
 
                 detail::tls_destructor(thread_info.get());
                 detail::set_current_thread_data(0);

Modified: branches/release/libs/thread/src/win32/thread.cpp
==============================================================================
--- branches/release/libs/thread/src/win32/thread.cpp (original)
+++ branches/release/libs/thread/src/win32/thread.cpp 2009-01-09 06:06:53 EST (Fri, 09 Jan 2009)
@@ -169,10 +169,12 @@
             catch(thread_interrupted const&)
             {
             }
- catch(...)
- {
- std::terminate();
- }
+// Removed as it stops the debugger identifying the cause of the exception
+// Unhandled exceptions still cause the application to terminate
+// catch(...)
+// {
+// std::terminate();
+// }
             run_thread_exit_callbacks();
             return 0;
         }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk