Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill 3 more functions around processes
[simgrid.git] / src / simix / ContextRaw.cpp
index b9bd0fe..a11741f 100644 (file)
@@ -43,7 +43,7 @@ public:
   RawContext(std::function<void()> code,
           void_pfn_smxprocess_t cleanup_func,
           smx_process_t process);
-  ~RawContext();
+  ~RawContext() override;
 public:
   static void wrapper(void* arg);
   void stop() override;
@@ -59,9 +59,9 @@ private:
 class RawContextFactory : public ContextFactory {
 public:
   RawContextFactory();
-  ~RawContextFactory();
+  ~RawContextFactory() override;
   RawContext* create_context(std::function<void()> code,
-    void_pfn_smxprocess_t, smx_process_t process) override;
+    void_pfn_smxprocess_t cleanup, smx_process_t process) override;
   void run_all() override;
 private:
   void run_all_adaptative();
@@ -406,7 +406,7 @@ void RawContext::suspend_parallel()
   smx_process_t next_work = (smx_process_t) xbt_parmap_next(raw_parmap);
   RawContext* next_context = nullptr;
 
-  if (next_work != NULL) {
+  if (next_work != nullptr) {
     /* there is a next process to resume */
     XBT_DEBUG("Run next process");
     next_context = (RawContext*) next_work->context;