Salome HOME
bos #41408 [EDF - 29761] KERNEL_Launcher and KERNEL_Launcher_SWIG failed
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 18 Mar 2024 11:32:19 +0000 (12:32 +0100)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Tue, 19 Mar 2024 08:35:58 +0000 (09:35 +0100)
src/runtime_swig/SALOMERuntime.i
src/runtime_swig/ThreadLauncher.cxx
src/runtime_swig/ThreadLauncher.hxx

index 0913016f6c9c97ded67231e92ff85b3e71c39daa..b25c31f0fa86091ca85bb2ebb8ac7bf86c4eb203 100644 (file)
@@ -137,7 +137,7 @@ static PyObject *convertContainer2(YACS::ENGINE::Container *cont, int owner=0)
 %rename(getSALOMERuntime) YACS::ENGINE::getSALOMERuntime; // to suppress a 503 warning
 %ignore omniORBpyAPI;
 
-%include <YACSRuntimeSALOMEExport.hxx>
+%include "YACSRuntimeSALOMEExport.hxx"
 %include "SalomeContainer.hxx"
 %include "SalomeHPContainer.hxx"
 %include "RuntimeSALOME.hxx"
@@ -256,7 +256,7 @@ namespace YACS
 {
   namespace ENGINE
   {
-    class ThreadDumpState
+    class YACSRUNTIMESALOME_EXPORT ThreadDumpState
     {
     public:
       ThreadDumpState(Proc *proc, int nbSeconds, const std::string& dumpFile, const std::string& lockFile);
index 5e3de2bfe2fd6a7a00b09eea462de4dea1a2413d..ebb02f42ec8f4dae0f5d310fdf52fdab91c0097a 100644 (file)
 
 using namespace YACS::ENGINE;
 
+ThreadDumpState::ThreadDumpState(Proc *proc, int nbSeconds, const std::string& dumpFile, const std::string& lockFile){
+  _proc = proc;
+  _nb_seconds= nbSeconds;
+  _dump_file = dumpFile;
+  _lock_file = lockFile;
+}
+
 ThreadDumpState::~ThreadDumpState()
 {
   join();
index f96e004b74d462451914209daf6e1ba00db11dcb..6bec03edd1b1bbd0785db38a80204f0e26a02db6 100644 (file)
@@ -33,8 +33,7 @@ namespace YACS
     class YACSLIBENGINE_EXPORT ThreadDumpState
     {
     public:
-      ThreadDumpState(Proc *proc, int nbSeconds, const std::string& dumpFile, const std::string& lockFile):
-        _proc(proc),_nb_seconds(nbSeconds),_dump_file(dumpFile),_lock_file(lockFile) { }
+      ThreadDumpState(Proc *proc, int nbSeconds, const std::string& dumpFile, const std::string& lockFile);
       ~ThreadDumpState();
       void run();
       void start();