/* Context switching within the JVM. */
-/* Copyright (c) 2009-2021. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2009-2022. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
JavaContext(std::function<void()>&& code, actor::ActorImpl* actor);
void start_hook() override;
- void stop_hook() override;
+ void stop() override;
};
class JavaContextFactory : public ContextFactory {
JavaContextFactory();
~JavaContextFactory() override;
Context* create_context(std::function<void()>&& code, actor::ActorImpl* actor) override;
- void run_all() override;
+ void run_all(std::vector<actor::ActorImpl*> const& actors) override;
};
XBT_PRIVATE ContextFactory* java_factory();