diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-11-17 11:57:43 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-11-17 11:57:43 +0100 |
commit | 1fc7a1d532015c8dc3eb07ee9b600bb153e04073 (patch) | |
tree | e7ceafd611ea3fdb6cd33917bba00ffdd09e5550 /cppu | |
parent | c34322b5253db84f80fb936419769565e4c6d207 (diff) |
cid#1254675 Uncaught exception
just throw up hands in despair via std::abort instead of std::runtime_error
Change-Id: I356932ed2d76558bb4febbd2ac0a7bb6ea27bd0f
Diffstat (limited to 'cppu')
-rw-r--r-- | cppu/source/threadpool/thread.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cppu/source/threadpool/thread.cxx b/cppu/source/threadpool/thread.cxx index 724da750708e..e1be210fefe3 100644 --- a/cppu/source/threadpool/thread.cxx +++ b/cppu/source/threadpool/thread.cxx @@ -17,6 +17,9 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <sal/config.h> + +#include <cstdlib> #include <stdio.h> #include <osl/diagnose.h> #include <uno/threadpool.h> @@ -125,7 +128,7 @@ namespace cppu_threadpool { } try { if (!create()) { - throw std::runtime_error("osl::Thread::create failed"); + std::abort(); } } catch (...) { rThreadAdmin.remove_locked( this ); |