namespace kernel {
namespace context {
-ContextFactory* java_factory()
-{
- XBT_INFO("Using regular java threads.");
- return new JavaContextFactory();
-}
-
JavaContextFactory::JavaContextFactory() : ContextFactory()
{
xbt_assert(xbt::binary_name == "java");
return this->new_context<JavaContext>(std::move(code), actor);
}
-void JavaContextFactory::run_all()
+void JavaContextFactory::run_all(std::vector<actor::ActorImpl*> const& actors)
{
- SerialThreadContext::run_all();
+ SerialThreadContext::run_all(actors);
}
-JavaContext::JavaContext(std::function<void()>&& code, smx_actor_t actor)
+JavaContext::JavaContext(std::function<void()>&& code, actor::ActorImpl* actor)
: SerialThreadContext(std::move(code), actor, false /* not maestro */)
{
/* ThreadContext already does all we need */
XBT_DEBUG("Cannot detach the current thread");
}
- throw ForcefulKillException(); // clean RAII variables with the dedicated exception
+ simgrid::ForcefulKillException::do_throw(); // clean RAII variables with the dedicated exception
}
}}} // namespace simgrid::kernel::context