XBT_LOG_NEW_DEFAULT_CATEGORY(java, "MSG for Java(TM)");
-namespace simgrid {
-namespace kernel {
-namespace context {
-
-ContextFactory* java_factory()
-{
- XBT_INFO("Using regular java threads.");
- return new JavaContextFactory();
-}
+namespace simgrid::kernel::context {
JavaContextFactory::JavaContextFactory() : ContextFactory()
{
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
+} // namespace simgrid::kernel::context