* Use library init/fini functions for our initialization.
- you can use logs and other feature as soon as you want in your
code (even before the xbt_init / MSG_init)
- - xbt_exit is now a no-op.
+ - xbt_exit is now a no-op and produce a warning when used.
-- Da SimGrid team <simgrid-devel@lists.gforge.inria.fr>
INFO1("sem_basic terminated with exit code %d (success)",EXIT_SUCCESS);
- xbt_exit();
-
return EXIT_SUCCESS;
}
if(!sched)
{
INFO1("sched_new() failed : errno %d",errno);
- xbt_exit();
exit(EXIT_FAILURE);
}
{
sched_free(&sched);
INFO1("sched_init() failed : errno %d\n",errno);
- xbt_exit();
exit(EXIT_FAILURE);
}
{
sched_free(&sched);
INFO1("sched_init() failed : errno %d",errno);
- xbt_exit();
exit(EXIT_FAILURE);
}
{
sched_free(&sched);
INFO1("sched_init() failed : errno %d",errno);
- xbt_exit();
exit(EXIT_FAILURE);
}
INFO1("sem_sched terminated with exit code %d (success)",EXIT_SUCCESS);
- xbt_exit();
-
return EXIT_SUCCESS;
}
gras_emul_exit();
gras_moddata_exit();
}
- xbt_exit();
}
const char *hexa_str(unsigned char *data, int size, int downside)
res = xbt_test_run(selection);
xbt_test_exit();
- xbt_exit();
return res;
}
/*******************************/
surf_parse_free_callbacks();
xbt_dict_free(&route_table);
NOW = 0; /* Just in case the user plans to restart the simulation afterward */
- xbt_exit();
}
void surf_presolve(void)
/** @brief Finalize the xbt mechanisms. */
void xbt_exit() {
+ WARN0("This function is deprecated, you shouldn't use it");
}
INFO1("Done (strlen>%d)", (int) (10 * strlen(tmp)));
free(tmp);
- xbt_exit();
return 0;
}
INFO0("***** Test 3 (Lagrange - Reno)");
test3(LAGRANGE_RENO);
- xbt_exit();
return 0;
}
dolog(" test.thres:verbose root.thres:error ");
dolog(" test.thres:critical ");
- xbt_exit();
return 0;
}
res = xbt_test_run(selection);
xbt_test_exit();
- xbt_exit();
return res;
}
EOF
}
rctx_exit();
- xbt_exit();
return 0;
}
free(err_line);
/* exit from the xbt framework */
- xbt_exit();
finalized = 1;
CDEBUG2(top, "val=%d%s", 3, "!");
CRITICAL6("false alarm%s%s%s%s%s%s", "","","","","","!");
- xbt_exit();
return 0;
}