Changeset: c1d5745c4ba8 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c1d5745c4ba8
Modified Files:
        sql/backends/monet5/UDF/pyapi/pyapi.c
Branch: Dec2016
Log Message:

Don't unnecessarily fork when no other Python thread is occupying the GIL.


diffs (15 lines):

diff --git a/sql/backends/monet5/UDF/pyapi/pyapi.c 
b/sql/backends/monet5/UDF/pyapi/pyapi.c
--- a/sql/backends/monet5/UDF/pyapi/pyapi.c
+++ b/sql/backends/monet5/UDF/pyapi/pyapi.c
@@ -325,9 +325,9 @@ str PyAPIeval(Client cntxt, MalBlkPtr mb
         if (python_call_active) {
             mapped = true;
             holds_gil = false;
-        }
-        else {
+        } else {
             python_call_active = true;
+            holds_gil = true;
         }
         MT_lock_unset(&pyapiLock);
     }
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to