* This is using the format generated by traceToString().
* Use a function to avoid static initialization order fiasco.
*/
-inline std::string& MC_record_path()
+inline auto& MC_record_path()
{
static std::string value;
return value;
simgrid::kernel::profile::FutureEvtSet future_evt_set;
std::vector<std::string> surf_path;
-/** set of hosts for which one want to be notified if they ever restart */
-std::set<std::string, std::less<>>& watched_hosts() // avoid static initialization order fiasco
-{
- static std::set<std::string, std::less<>> value;
- return value;
-}
-
extern std::map<std::string, simgrid::kernel::resource::StorageType*, std::less<>> storage_types;
std::vector<surf_model_description_t>* surf_plugin_description = nullptr;
extern XBT_PRIVATE double sg_weight_S_parameter;
extern XBT_PRIVATE std::vector<std::string> surf_path;
extern XBT_PRIVATE std::unordered_map<std::string, simgrid::kernel::profile::Profile*> traces_set_list;
-XBT_PRIVATE std::set<std::string, std::less<>>& watched_hosts();
+
+/** set of hosts for which one want to be notified if they ever restart */
+inline auto& watched_hosts() // avoid static initialization order fiasco
+{
+ static std::set<std::string, std::less<>> value;
+ return value;
+}
static inline void double_update(double* variable, double value, double precision)
{
};
// This function is here to avoid static initialization order fiasco
-static std::vector<xbt_log_setting_t>& xbt_log_settings()
+static auto& xbt_log_settings()
{
static std::vector<xbt_log_setting_t> value;
return value;