Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill the now useless ParallelRawContext and ParallelBoostContext
[simgrid.git] / src / kernel / context / ContextUnix.hpp
index bbdec21..00c4832 100644 (file)
@@ -29,7 +29,6 @@ public:
   UContext(std::function<void()> code, void_pfn_smxprocess_t cleanup_func, smx_actor_t process,
            SwappedContextFactory* factory);
   ~UContext() override;
-  void stop() override;
 
   void swap_into(SwappedContext* to) override;
 
@@ -47,23 +46,9 @@ 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;
-
-  static void run_all();
-};
-
 class UContextFactory : public SwappedContextFactory {
 public:
-  UContextFactory();
-  ~UContextFactory() override;
+  UContextFactory() : SwappedContextFactory("UContextFactory") {}
 
   Context* create_context(std::function<void()> code, void_pfn_smxprocess_t cleanup, smx_actor_t process) override;
 };