cid#1254675 Uncaught exception
just throw up hands in despair via std::abort instead of std::runtime_error Change-Id: I356932ed2d76558bb4febbd2ac0a7bb6ea27bd0f
This commit is contained in:
@@ -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 );
|
||||
|
Reference in New Issue
Block a user