X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/39c935d6d5ee86d153f6f7e6a10d723ae7c57f6f..c8b2d9c4bfee6171c649d2fdbfa96a742a478778:/include/simgrid/engine.h diff --git a/include/simgrid/engine.h b/include/simgrid/engine.h index 2e7f1d8742..0ef45993d6 100644 --- a/include/simgrid/engine.h +++ b/include/simgrid/engine.h @@ -36,13 +36,16 @@ XBT_PUBLIC void simgrid_register_function(const char* name, void (*code)(int, ch /** Registers a function as the default main function of actors * * It will be used as fallback when the function requested from the deployment file was not registered. - * It is used for trace-based simulations (see examples/s4u/replay-comms and similar). + * It is used for trace-based simulations (see examples/cpp/replay-comms and similar). */ XBT_PUBLIC void simgrid_register_default(void (*code)(int, char**)); /** Retrieve the simulation time (in seconds) */ XBT_PUBLIC double simgrid_get_clock(); -/** Retrieve the number of actors in the simulation */ -XBT_ATTRIB_DEPRECATED_v330("Please use sg_actor_count()") XBT_PUBLIC int simgrid_get_actor_count(); +/* Set some code to execute in the maestro (must be used before the engine creation) + * + * If no maestro code is registered (the default), the main thread + * is assumed to be the maestro. */ +XBT_PUBLIC void simgrid_set_maestro(void (*code)(void*), void* data); /** @brief Allow other libraries to react to the --help flag, too *