]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Add new env var TIMEOUT_TO_WAIT_EXE_COMPONENT
authorribes <ribes>
Thu, 22 Mar 2012 10:31:19 +0000 (10:31 +0000)
committerribes <ribes>
Thu, 22 Mar 2012 10:31:19 +0000 (10:31 +0000)
Defines how many seconds a container waits an exe component to be loaded

src/Container/Container_i.cxx

index f0e45ab2bb4aca28c67473b9c0bc8a62e9a9a9f3..316d9e228bd20347fb5c27383916de7e5be39a74 100644 (file)
@@ -846,6 +846,19 @@ Engines_Container_i::createExecutableInstance(std::string CompName, int studyId,
   else
   {
     int count=20;
+    if (getenv("TIMEOUT_TO_WAIT_EXE_COMPONENT") != 0)
+    {
+      std::string new_count_str = getenv("TIMEOUT_TO_WAIT_EXE_COMPONENT");
+      int new_count;
+      std::istringstream ss(new_count_str);
+      if (!(ss >> new_count))
+      {
+        INFOS("[Container] TIMEOUT_TO_WAIT_EXE_COMPONENT should be an int");
+      }
+      else
+        count = new_count;
+    }
+    INFOS("[Container] waiting " << count << " second steps exe component ");
     CORBA::Object_var obj = CORBA::Object::_nil() ;
     while ( CORBA::is_nil(obj) && count )
     {