]> AND Public Git Repository - simgrid.git/blobdiff - src/kernel/context/ContextThread.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move ForcefulKillException to the root namespace, along with the other exceptions
[simgrid.git] / src / kernel / context / ContextThread.hpp
index 6f6125a59b5128a23037441078c9a958ea1e54e5..47be1bb773fe134ea7202f4003edb371d471a734 100644 (file)
@@ -21,6 +21,8 @@ namespace context {
 class XBT_PUBLIC ThreadContext : public AttachContext {
 public:
   ThreadContext(std::function<void()> code, smx_actor_t actor, bool maestro);
+  ThreadContext(const ThreadContext&) = delete;
+  ThreadContext& operator=(const ThreadContext&) = delete;
   ~ThreadContext() override;
   void stop() override;
   void suspend() override;
@@ -80,6 +82,8 @@ private:
 class ThreadContextFactory : public ContextFactory {
 public:
   ThreadContextFactory();
+  ThreadContextFactory(const ThreadContextFactory&) = delete;
+  ThreadContextFactory& operator=(const ThreadContextFactory&) = delete;
   ~ThreadContextFactory() override;
   ThreadContext* create_context(std::function<void()> code, smx_actor_t actor) override
   {