Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /Libraries/swakPythonIntegration/pythonInterpreterWrapper.H [df7d48] .. [8d143b] Maximize Restore

  Switch to side-by-side view

--- a/Libraries/swakPythonIntegration/pythonInterpreterWrapper.H
+++ b/Libraries/swakPythonIntegration/pythonInterpreterWrapper.H
@@ -142,6 +142,7 @@
 protected:
     //- how many instances exist (we need a separate interpreter for each of those)
     static label interpreterCount;
+    static PyThreadState *mainThreadState;
 
     //- Execute after the python-code has been called
     void doAfterExecution(
@@ -153,6 +154,9 @@
 
     //- set the state to "my" interpreter
     void setInterpreter();
+
+    //- release the state to "my" interpreter
+    void releaseInterpreter();
 
     //- Check whether we want to continue (parallel)
     bool parallelNoRun(bool doWarning=false);