X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/15f9e0adbd11d2a0736440004a2f71ef9cfccab8..3baaf982217fbc818965e8ed71c3ec91e96844d5:/src/kernel/context/ContextRaw.hpp diff --git a/src/kernel/context/ContextRaw.hpp b/src/kernel/context/ContextRaw.hpp index 63fe3b783a..1ddb3b5ae7 100644 --- a/src/kernel/context/ContextRaw.hpp +++ b/src/kernel/context/ContextRaw.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2009-2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2009-2019. 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. */ @@ -12,7 +12,6 @@ #include #include -#include #include "src/kernel/context/ContextSwapped.hpp" @@ -27,9 +26,8 @@ namespace context { */ class RawContext : public SwappedContext { public: - RawContext(std::function code, void_pfn_smxprocess_t cleanup_func, smx_actor_t process, + RawContext(std::function code, void_pfn_smxprocess_t cleanup_func, smx_actor_t actor, SwappedContextFactory* factory); - ~RawContext() override; void swap_into(SwappedContext* to) override; @@ -47,21 +45,8 @@ private: static void wrapper(void* arg); }; -class ParallelRawContext : public RawContext { -public: - ParallelRawContext(std::function code, void_pfn_smxprocess_t cleanup_func, smx_actor_t process, - SwappedContextFactory* factory) - : RawContext(std::move(code), cleanup_func, process, factory) - { - } - void suspend() override; - void resume() override; -}; - class RawContextFactory : public SwappedContextFactory { public: - RawContextFactory() : SwappedContextFactory("RawContextFactory") {} - Context* create_context(std::function code, void_pfn_smxprocess_t cleanup, smx_actor_t process) override; }; }}} // namespace