From: Martin Quinson Date: Sun, 11 Nov 2018 05:17:17 +0000 (+0100) Subject: improve a comment X-Git-Tag: v3_22~802 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/05b84555fa616971fccb6579c2e7b4f2321c42b9 improve a comment --- diff --git a/src/kernel/context/Context.hpp b/src/kernel/context/Context.hpp index 8b15744884..5c9de3ec0d 100644 --- a/src/kernel/context/Context.hpp +++ b/src/kernel/context/Context.hpp @@ -28,13 +28,9 @@ public: virtual ~ContextFactory(); virtual Context* create_context(std::function code, void_pfn_smxprocess_t cleanup, smx_actor_t process) = 0; - // Optional methods for attaching main() as a context: - - /** Creates a context from the current context of execution - * - * This will not work on all implementation of `ContextFactory`. - */ + /** Turn the current thread into a simulation context */ virtual Context* attach(void_pfn_smxprocess_t cleanup_func, smx_actor_t process); + /** Turn the current thread into maestro (the old maestro becomes a regular actor) */ virtual Context* create_maestro(std::function code, smx_actor_t process); virtual void run_all() = 0;