SMPI
- New algorithm to privatize globals: dlopen, with dynamic loading tricks
+ XBT/Replay:
+ - New function xbt_replay_action_get():
+ Retrieve the function previously associated to an event type.
+
-- Release target: June 21 2017 -- Da SimGrid team <simgrid-devel@lists.gforge.inria.fr>
SimGrid (3.15) stable; urgency=low
typedef void (*action_fun)(const char* const* args);
XBT_PUBLIC(void) xbt_replay_action_register(const char* action_name, action_fun function);
+XBT_PUBLIC(action_fun) xbt_replay_action_get(const char* action_name);
SG_END_DECL()
{
simgrid::xbt::action_funs.insert({std::string(action_name), function});
}
+
+/**
+ * \ingroup XBT_replay
+ * \brief Get the function that was previously registered to handle a kind of action
+ *
+ * This can be useful if you want to override and extend an existing action.
+ */
+action_fun xbt_replay_action_get(const char* action_name)
+{
+ return simgrid::xbt::action_funs.at(std::string(action_name));
+}