git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@7708
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
14 files changed:
* 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)
* 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>
-- Da SimGrid team <simgrid-devel@lists.gforge.inria.fr>
INFO1("sem_basic terminated with exit code %d (success)",EXIT_SUCCESS);
INFO1("sem_basic terminated with exit code %d (success)",EXIT_SUCCESS);
if(!sched)
{
INFO1("sched_new() failed : errno %d",errno);
if(!sched)
{
INFO1("sched_new() failed : errno %d",errno);
{
sched_free(&sched);
INFO1("sched_init() failed : errno %d\n",errno);
{
sched_free(&sched);
INFO1("sched_init() failed : errno %d\n",errno);
{
sched_free(&sched);
INFO1("sched_init() failed : errno %d",errno);
{
sched_free(&sched);
INFO1("sched_init() failed : errno %d",errno);
{
sched_free(&sched);
INFO1("sched_init() failed : errno %d",errno);
{
sched_free(&sched);
INFO1("sched_init() failed : errno %d",errno);
INFO1("sem_sched terminated with exit code %d (success)",EXIT_SUCCESS);
INFO1("sem_sched terminated with exit code %d (success)",EXIT_SUCCESS);
gras_emul_exit();
gras_moddata_exit();
}
gras_emul_exit();
gras_moddata_exit();
}
}
const char *hexa_str(unsigned char *data, int size, int downside)
}
const char *hexa_str(unsigned char *data, int size, int downside)
res = xbt_test_run(selection);
xbt_test_exit();
res = xbt_test_run(selection);
xbt_test_exit();
return res;
}
/*******************************/
return res;
}
/*******************************/
surf_parse_free_callbacks();
xbt_dict_free(&route_table);
NOW = 0; /* Just in case the user plans to restart the simulation afterward */
surf_parse_free_callbacks();
xbt_dict_free(&route_table);
NOW = 0; /* Just in case the user plans to restart the simulation afterward */
}
void surf_presolve(void)
}
void surf_presolve(void)
/** @brief Finalize the xbt mechanisms. */
void xbt_exit() {
/** @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);
INFO1("Done (strlen>%d)", (int) (10 * strlen(tmp)));
free(tmp);
INFO0("***** Test 3 (Lagrange - Reno)");
test3(LAGRANGE_RENO);
INFO0("***** Test 3 (Lagrange - Reno)");
test3(LAGRANGE_RENO);
dolog(" test.thres:verbose root.thres:error ");
dolog(" test.thres:critical ");
dolog(" test.thres:verbose root.thres:error ");
dolog(" test.thres:critical ");
res = xbt_test_run(selection);
xbt_test_exit();
res = xbt_test_run(selection);
xbt_test_exit();
free(err_line);
/* exit from the xbt framework */
free(err_line);
/* exit from the xbt framework */
CDEBUG2(top, "val=%d%s", 3, "!");
CRITICAL6("false alarm%s%s%s%s%s%s", "","","","","","!");
CDEBUG2(top, "val=%d%s", 3, "!");
CRITICAL6("false alarm%s%s%s%s%s%s", "","","","","","!");