A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add boolean state to resources and protect set_core_count
[simgrid.git]
/
src
/
surf
/
network_interface.cpp
diff --git
a/src/surf/network_interface.cpp
b/src/surf/network_interface.cpp
index
68c455c
..
23a464a
100644
(file)
--- a/
src/surf/network_interface.cpp
+++ b/
src/surf/network_interface.cpp
@@
-73,7
+73,7
@@
double NetworkModel::next_occurring_event_full(double now)
* Resource *
************/
* Resource *
************/
-LinkImpl::LinkImpl(const std::string& name, lmm::Constraint* constraint) : Resource(name), piface_(this)
+LinkImpl::LinkImpl(const std::string& name, lmm::Constraint* constraint) : Resource
_T
(name), piface_(this)
{
this->set_constraint(constraint);
if (name != "__loopback__")
{
this->set_constraint(constraint);
if (name != "__loopback__")
@@
-153,12
+153,14
@@
void LinkImpl::turn_off()
}
}
}
}
}
}
+
void LinkImpl::seal()
{
this->set_model(surf_network_model);
void LinkImpl::seal()
{
this->set_model(surf_network_model);
-
+ Resource::seal();
simgrid::s4u::Link::on_creation(*get_iface());
}
simgrid::s4u::Link::on_creation(*get_iface());
}
+
void LinkImpl::on_bandwidth_change() const
{
s4u::Link::on_bandwidth_change(this->piface_);
void LinkImpl::on_bandwidth_change() const
{
s4u::Link::on_bandwidth_change(this->piface_);