Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of https://framagit.org/simgrid/simgrid
[simgrid.git] / src / kernel / resource / Resource.cpp
index b975e92..e835455 100644 (file)
@@ -67,7 +67,7 @@ void Resource::set_state_profile(profile::Profile* profile)
 {
   xbt_assert(state_event_ == nullptr, "Cannot set a second state profile to %s", get_cname());
 
-  state_event_ = future_evt_set.add_trace(profile, this);
+  state_event_ = profile->schedule(&future_evt_set, this);
 }
 
 kernel::lmm::Constraint* Resource::get_constraint() const