Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Simplify the library initialization + deprecate 2 XBT functions
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Mon, 20 Feb 2023 14:46:02 +0000 (15:46 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Tue, 21 Feb 2023 14:18:36 +0000 (15:18 +0100)
commit2ad536e710c5936ff8e525e4bbb5e7046f292aac
tree7b89b6bb8a4bc659f88b9f844883a4d5afc5c9e9
parentd7bad17b9b1c8c9475fcf86bfeebc4d5d7d35fb4
Simplify the library initialization + deprecate 2 XBT functions

Work toward making EngineImpl::initialize() the only entry point of
the library initialization. It's now impossible to initialize xbt
separately of EngineImpl.

It should help reducing the mess in that code, which results from the
many ways of initializing the library. simgrid-mc, unit-tests, smpi
and others each have their own way of initializing everything,
resulting in a spagetthi and fragile code. It's a bit of a waste to
initialize an EngineImpl even when you don't want to actually run a
simulation, but easier code is always better.

This commit also includes another one because I git amended locally by
error, sorry for the mess. The other commit was about the deprecation
of xbt_procname and xbt_getpid that were xbt functions relying on S4U.
23 files changed:
MANIFEST.in
include/simgrid/Exception.hpp
include/simgrid/actor.h
include/simgrid/engine.h
include/xbt.h
include/xbt/module.h
include/xbt/virtu.h
src/kernel/EngineImpl.cpp
src/kernel/resource/profile/StochasticDatedValue.cpp
src/s4u/s4u_Actor.cpp
src/s4u/s4u_Engine.cpp
src/simgrid/sg_config.cpp
src/xbt/backtrace.cpp
src/xbt/exception.cpp
src/xbt/xbt_log_layout_format.cpp
src/xbt/xbt_log_layout_simple.cpp
src/xbt/xbt_main.cpp
src/xbt/xbt_modinter.h
src/xbt/xbt_virtu.cpp [deleted file]
teshsuite/models/lmm_usage/lmm_usage.cpp
teshsuite/models/maxmin_bench/maxmin_bench.cpp
teshsuite/xbt/mmalloc/mmalloc_test.cpp
tools/cmake/DefinePackages.cmake