summaryrefslogtreecommitdiff
path: root/cppu/source
diff options
context:
space:
mode:
Diffstat (limited to 'cppu/source')
-rw-r--r--cppu/source/threadpool/thread.cxx5
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 );