Author: tack
Date: Thu Sep 28 01:02:25 2006
New Revision: 1909

Modified:
   trunk/evas/src/evas.c

Log:
Fix intermittent segfault: Evas_PyObject_render was calling python API
functions while the GIL was still released.  Fixed by moving
Py_END_ALLOW_THREADS to the proper spot.


Modified: trunk/evas/src/evas.c
==============================================================================
--- trunk/evas/src/evas.c       (original)
+++ trunk/evas/src/evas.c       Thu Sep 28 01:02:25 2006
@@ -164,6 +164,7 @@
     BENCH_START
     updates = evas_render_updates(self->evas);
     BENCH_END
+    Py_END_ALLOW_THREADS
     for (p = updates; p; p = p->next) {
         Evas_Rectangle *r = p->data;
         PyObject *region = Py_BuildValue("(iiii)", r->x, r->y, r->w, r->h);
@@ -171,7 +172,6 @@
         Py_DECREF(region);
     }
     evas_render_updates_free(updates);
-    Py_END_ALLOW_THREADS
     return list;
 }
 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to