]> AND Public Git Repository - simgrid.git/blobdiff - src/kernel/EngineImpl.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add informative comment near implementation for deprecated functions.
[simgrid.git] / src / kernel / EngineImpl.cpp
index 289c50c6c6786e33d51396d1a47c6b732e402699..fecdfb99eb03c703173b0b6f3164cbe5f70c57e5 100644 (file)
@@ -34,7 +34,6 @@ config::Flag<double> cfg_breakpoint{"debug/breakpoint",
                                     "When non-negative, raise a SIGTRAP after given (simulated) time", -1.0};
 EngineImpl::~EngineImpl()
 {
-
   while (not timer::kernel_timers().empty()) {
     delete timer::kernel_timers().top().second;
     timer::kernel_timers().pop();
@@ -124,6 +123,11 @@ void EngineImpl::add_model(std::shared_ptr<resource::Model> model, const std::ve
   models_prio_[model_name] = std::move(model);
 }
 
+void EngineImpl::add_split_duplex_link(const std::string& name, std::unique_ptr<resource::SplitDuplexLinkImpl> link)
+{
+  split_duplex_links_[name] = std::move(link);
+}
+
 /** Wake up all actors waiting for a Surf action to finish */
 void EngineImpl::wake_all_waiting_actors() const
 {