Salome HOME
Squeeze memory of process hosting YACS graph
[modules/yacs.git] / src / runtime / PythonNode.hxx
index fdac25950efd5bcdbc0889c97a714e5f22e7a726..8e05906dfdb5ad09ba581b92908d3d4b4aa162ce 100644 (file)
@@ -85,6 +85,12 @@ namespace YACS
       PythonNode* cloneNode(const std::string& name);
       virtual std::string typeName() { return "YACS__ENGINE__PythonNode"; }
       void applyDPLScope(ComposedNode *gfn);
+      void setSqueezeStatus(bool sqStatus) { _autoSqueeze=sqStatus; }
+      bool getSqueezeStatus() const { return _autoSqueeze; }
+      void squeezeMemorySafe();
+    protected:
+      void squeezeMemory();
+      void squeezeMemoryRemote();
     public:
       static const char KIND[];
       static const char IMPL_NAME[];
@@ -92,6 +98,7 @@ namespace YACS
       static const char REMOTE_NAME[];
       static const char DPL_INFO_NAME[];
     protected:
+      bool _autoSqueeze = false;
       Engines::PyScriptNode_var _pynode;
     };