XBT_LOG_NEW_SUBCATEGORY(comm, simu, "Messages from asynchronous pipes");
XBT_LOG_NEW_SUBCATEGORY(proc, simu, "Messages from base process class");
XBT_LOG_NEW_SUBCATEGORY(loba, simu, "Messages from load-balancer");
+XBT_LOG_NEW_SUBCATEGORY(thrd, simu, "Messages from thread wrapper class");
XBT_LOG_EXTERNAL_DEFAULT_CATEGORY(main);
delete proc;
}
- catch (std::invalid_argument& e) {
+ catch (const std::invalid_argument& e) {
THROW1(arg_error, 0, "%s", e.what());
}
+ catch (const std::exception& e) {
+ THROW1(0, 0, "%s", e.what());
+ }
return result;
}
static void check_for_lost_load()
{
double total_init = process::get_total_load_init();
-
double total_exit = process::get_total_load_exit();
double lost = total_init - total_exit;
double lost_ratio = 100.0 * lost / total_init;