Enlightenment CVS committal

Author  : ulisses
Project : e17
Module  : proto/python-efl

Dir     : e17/proto/python-efl/python-ecore/ecore


Modified Files:
        ecore.c_ecore.pyx ecore.c_ecore_animator.pxi 
        ecore.c_ecore_fd_handler.pxi ecore.c_ecore_idle_enterer.pxi 
        ecore.c_ecore_idle_exiter.pxi ecore.c_ecore_idler.pxi 
        ecore.c_ecore_timer.pxi 


Log Message:
Make python-ecore thread-safe.

 - acquiring/releasing GIL using 'with GIL' annotation
 - bumped version number

===================================================================
RCS file: /cvs/e/e17/proto/python-efl/python-ecore/ecore/ecore.c_ecore.pyx,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ecore.c_ecore.pyx   30 Sep 2007 22:18:51 -0000      1.6
+++ ecore.c_ecore.pyx   1 Oct 2007 04:34:47 -0000       1.7
@@ -19,12 +19,16 @@
 
 def main_loop_begin():
     "Enter main loop, this function will not return until L{main_loop_quit()}."
+    python.Py_BEGIN_ALLOW_THREADS
     ecore_main_loop_begin()
+    python.Py_END_ALLOW_THREADS
 
 
 def main_loop_iterate():
     "Force main loop to process requests (timers, fd handlers, idlers, ...)"
+    python.Py_BEGIN_ALLOW_THREADS
     ecore_main_loop_iterate()
+    python.Py_END_ALLOW_THREADS
 
 
 def time_get():
===================================================================
RCS file: 
/cvs/e/e17/proto/python-efl/python-ecore/ecore/ecore.c_ecore_animator.pxi,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ecore.c_ecore_animator.pxi  29 Sep 2007 00:32:30 -0000      1.5
+++ ecore.c_ecore_animator.pxi  1 Oct 2007 04:34:47 -0000       1.6
@@ -2,7 +2,7 @@
 
 import traceback
 
-cdef int animator_cb(void *_td):
+cdef int animator_cb(void *_td) with GIL:
     cdef Animator obj
     cdef int r
 
===================================================================
RCS file: 
/cvs/e/e17/proto/python-efl/python-ecore/ecore/ecore.c_ecore_fd_handler.pxi,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- ecore.c_ecore_fd_handler.pxi        30 Sep 2007 22:18:51 -0000      1.6
+++ ecore.c_ecore_fd_handler.pxi        1 Oct 2007 04:34:47 -0000       1.7
@@ -2,7 +2,7 @@
 
 import traceback
 
-cdef void fd_handler_prepare_cb(void *_td, Ecore_Fd_Handler *fdh):
+cdef void fd_handler_prepare_cb(void *_td, Ecore_Fd_Handler *fdh) with GIL:
     cdef FdHandler obj
     cdef int r
 
@@ -27,7 +27,7 @@
     return ", ".join(flags)
 
 
-cdef int fd_handler_cb(void *_td, Ecore_Fd_Handler *fdh):
+cdef int fd_handler_cb(void *_td, Ecore_Fd_Handler *fdh) with GIL:
     cdef FdHandler obj
     cdef int r
 
===================================================================
RCS file: 
/cvs/e/e17/proto/python-efl/python-ecore/ecore/ecore.c_ecore_idle_enterer.pxi,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ecore.c_ecore_idle_enterer.pxi      29 Sep 2007 00:32:30 -0000      1.5
+++ ecore.c_ecore_idle_enterer.pxi      1 Oct 2007 04:34:47 -0000       1.6
@@ -2,7 +2,7 @@
 
 import traceback
 
-cdef int idle_enterer_cb(void *_td):
+cdef int idle_enterer_cb(void *_td) with GIL:
     cdef IdleEnterer obj
     cdef int r
 
===================================================================
RCS file: 
/cvs/e/e17/proto/python-efl/python-ecore/ecore/ecore.c_ecore_idle_exiter.pxi,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ecore.c_ecore_idle_exiter.pxi       29 Sep 2007 00:32:30 -0000      1.5
+++ ecore.c_ecore_idle_exiter.pxi       1 Oct 2007 04:34:47 -0000       1.6
@@ -2,7 +2,7 @@
 
 import traceback
 
-cdef int idle_exiter_cb(void *_td):
+cdef int idle_exiter_cb(void *_td) with GIL:
     cdef IdleExiter obj
     cdef int r
 
===================================================================
RCS file: 
/cvs/e/e17/proto/python-efl/python-ecore/ecore/ecore.c_ecore_idler.pxi,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ecore.c_ecore_idler.pxi     29 Sep 2007 00:32:30 -0000      1.5
+++ ecore.c_ecore_idler.pxi     1 Oct 2007 04:34:47 -0000       1.6
@@ -2,7 +2,7 @@
 
 import traceback
 
-cdef int idler_cb(void *_td):
+cdef int idler_cb(void *_td) with GIL:
     cdef Idler obj
     cdef int r
 
===================================================================
RCS file: 
/cvs/e/e17/proto/python-efl/python-ecore/ecore/ecore.c_ecore_timer.pxi,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ecore.c_ecore_timer.pxi     29 Sep 2007 00:32:30 -0000      1.5
+++ ecore.c_ecore_timer.pxi     1 Oct 2007 04:34:47 -0000       1.6
@@ -2,7 +2,7 @@
 
 import traceback
 
-cdef int timer_cb(void *_td):
+cdef int timer_cb(void *_td) with GIL:
     cdef Timer obj
     cdef int r
 



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to