/** Maestro wants to run all ready actors */
void SwappedContextFactory::run_all()
{
- auto* engine = EngineImpl::get_instance();
+ const auto* engine = EngineImpl::get_instance();
/* This function is called by maestro at the beginning of a scheduling round to get all working threads executing some
* stuff It is much easier to understand what happens if you see the working threads as bodies that swap their soul
* for the ones of the simulated processes that must run.
// When given that soul, the body will wait for the next scheduling round
}
} else { // sequential execution
- auto* engine = EngineImpl::get_instance();
+ const auto* engine = EngineImpl::get_instance();
/* determine the next context */
unsigned long int i = factory_.process_index_;
factory_.process_index_++;
if (netpoint == netpoint_)
return this;
- for (auto* children : children_) {
+ for (const auto* children : children_) {
const NetZoneImpl* netzone = children->get_netzone_recursive(netpoint);
if (netzone)
return netzone;
kernel::actor::ActorImpl* maestro_ = nullptr;
public:
- bool is_maestro(kernel::actor::ActorImpl* actor) const { return actor == maestro_; }
+ bool is_maestro(const kernel::actor::ActorImpl* actor) const { return actor == maestro_; }
void set_maestro(kernel::actor::ActorImpl* actor) { maestro_ = actor; }
kernel::actor::ActorImpl* get_maestro() const { return maestro_; }
void destroy_maestro()