X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/313686bba591f787dd41c1afe358305f7ee57334..cc4eceb15c80a597e44222b8c0ff60caf85db959:/src/kernel/context/ContextSwapped.hpp diff --git a/src/kernel/context/ContextSwapped.hpp b/src/kernel/context/ContextSwapped.hpp index 507fbb0bcd..0195e1b7c0 100644 --- a/src/kernel/context/ContextSwapped.hpp +++ b/src/kernel/context/ContextSwapped.hpp @@ -19,6 +19,8 @@ class SwappedContextFactory : public ContextFactory { friend SwappedContext; // Reads whether we are in parallel mode public: SwappedContextFactory(); + SwappedContextFactory(const SwappedContextFactory&) = delete; + SwappedContextFactory& operator=(const SwappedContextFactory&) = delete; ~SwappedContextFactory() override; void run_all() override; @@ -36,6 +38,8 @@ private: class SwappedContext : public Context { public: SwappedContext(std::function code, smx_actor_t get_actor, SwappedContextFactory* factory); + SwappedContext(const SwappedContext&) = delete; + SwappedContext& operator=(const SwappedContext&) = delete; virtual ~SwappedContext(); void suspend() override;