XBT_DEBUG("No more process to run");
next_context = static_cast<SerialRawContext*>(RawContext::get_maestro());
}
XBT_DEBUG("No more process to run");
next_context = static_cast<SerialRawContext*>(RawContext::get_maestro());
}
RawContext::swap(this, next_context);
}
void SerialRawContext::resume()
{
RawContext::swap(this, next_context);
}
void SerialRawContext::resume()
{
XBT_DEBUG("Restoring worker stack %zu (working threads = %zu)", worker_id_, threads_working_.load());
}
XBT_DEBUG("Restoring worker stack %zu (working threads = %zu)", worker_id_, threads_working_.load());
}
ParallelRawContext* worker_context = static_cast<ParallelRawContext*>(SIMIX_context_self());
workers_context_[worker_id_] = worker_context;
XBT_DEBUG("Saving worker stack %zu", worker_id_);
ParallelRawContext* worker_context = static_cast<ParallelRawContext*>(SIMIX_context_self());
workers_context_[worker_id_] = worker_context;
XBT_DEBUG("Saving worker stack %zu", worker_id_);