Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
change static fields in SwappedCtx into regular fields of the factory
[simgrid.git] / src / kernel / context / ContextUnix.hpp
index d1aeff2..e6961a8 100644 (file)
@@ -28,7 +28,6 @@ class UContext : public SwappedContext {
 public:
   UContext(std::function<void()> code, void_pfn_smxprocess_t cleanup_func, smx_actor_t process,
            SwappedContextFactory* factory);
-  ~UContext() override;
 
   void swap_into(SwappedContext* to) override;
 
@@ -46,17 +45,6 @@ private:
   static void make_ctx(ucontext_t* ucp, void (*func)(int, int), UContext* arg);
 };
 
-class ParallelUContext : public UContext {
-public:
-  ParallelUContext(std::function<void()> code, void_pfn_smxprocess_t cleanup_func, smx_actor_t process,
-                   SwappedContextFactory* factory)
-      : UContext(std::move(code), cleanup_func, process, factory)
-  {
-  }
-  void suspend() override;
-  void resume() override;
-};
-
 class UContextFactory : public SwappedContextFactory {
 public:
   UContextFactory() : SwappedContextFactory("UContextFactory") {}