Salome HOME
[EDF29761] : Fix regression in KERNEL_Launcher introduced by previous commit bos41337
authorAnthony Geay <anthony.geay@edf.fr>
Sun, 17 Mar 2024 17:20:48 +0000 (18:20 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Sun, 17 Mar 2024 17:20:48 +0000 (18:20 +0100)
src/runtime_swig/SALOMERuntime.i

index e8a5df23e42b5eb063181cb1792a45f06f238d8d..0913016f6c9c97ded67231e92ff85b3e71c39daa 100644 (file)
@@ -104,23 +104,6 @@ static PyObject *convertContainer2(YACS::ENGINE::Container *cont, int owner=0)
 }
 %}
 
-%{
-#include "Proc.hxx"
-
-#include <thread>
-#include <memory>
-#include <string>
-using namespace YACS::ENGINE;
-class ThreadDumpState
-{
- public:
-   ThreadDumpState(Proc *proc, int nbSeconds, const std::string& dumpFile, const std::string& lockFile);
-   ~ThreadDumpState();
-   void start();
-   void join();
-};
-%}
-
 // ----------------------------------------------------------------------------
 
 #ifdef SWIGPYTHON
@@ -269,3 +252,17 @@ namespace YACS
   }
 }
 
+namespace YACS
+{
+  namespace ENGINE
+  {
+    class ThreadDumpState
+    {
+    public:
+      ThreadDumpState(Proc *proc, int nbSeconds, const std::string& dumpFile, const std::string& lockFile);
+      ~ThreadDumpState();
+      void start();
+      void join();
+    };
+  }
+}