Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill the now useless ParallelRawContext and ParallelBoostContext
[simgrid.git] / src / kernel / context / ContextRaw.hpp
index e14877c..b16fe7c 100644 (file)
@@ -27,9 +27,9 @@ namespace context {
   */
 class RawContext : public SwappedContext {
 public:
-  RawContext(std::function<void()> code, void_pfn_smxprocess_t cleanup_func, smx_actor_t process);
+  RawContext(std::function<void()> code, void_pfn_smxprocess_t cleanup_func, smx_actor_t process,
+             SwappedContextFactory* factory);
   ~RawContext() override;
-  void stop() override;
 
   void swap_into(SwappedContext* to) override;
 
@@ -47,27 +47,11 @@ private:
   static void wrapper(void* arg);
 };
 
-class ParallelRawContext : public RawContext {
+class RawContextFactory : public SwappedContextFactory {
 public:
-  ParallelRawContext(std::function<void()> code, void_pfn_smxprocess_t cleanup_func, smx_actor_t process)
-      : RawContext(std::move(code), cleanup_func, process)
-  {
-  }
-  void suspend() override;
-  void resume() override;
+  RawContextFactory() : SwappedContextFactory("RawContextFactory") {}
 
-  static void run_all();
-};
-
-class RawContextFactory : public ContextFactory {
-public:
-  RawContextFactory();
-  ~RawContextFactory() override;
   Context* create_context(std::function<void()> code, void_pfn_smxprocess_t cleanup, smx_actor_t process) override;
-  void run_all() override;
-
-private:
-  bool parallel_;
 };
 }}} // namespace