Author: ArcRiley Date: 2008-05-17 12:38:33 -0400 (Sat, 17 May 2008) New Revision: 1263
Modified: trunk/pysoy/src/_internals/AsyncQueue.pym Log: '''Quick Fix''': * fixed object assignment to void* inside the nogil block of AsyncQueue._pop Modified: trunk/pysoy/src/_internals/AsyncQueue.pym =================================================================== --- trunk/pysoy/src/_internals/AsyncQueue.pym 2008-05-16 17:56:53 UTC (rev 1262) +++ trunk/pysoy/src/_internals/AsyncQueue.pym 2008-05-17 16:38:33 UTC (rev 1263) @@ -17,6 +17,7 @@ # # $Id$ +cimport glib cimport py cdef class AsyncQueue : @@ -45,8 +46,8 @@ glib.g_async_queue_push(self._asyncqueue, data) cdef object _pop(self) : - cdef object _obj + cdef void* _obj with nogil: - _obj = <object> glib.g_async_queue_pop(self._asyncqueue) - py.Py_DECREF(_obj) - return _obj + _obj = glib.g_async_queue_pop(self._asyncqueue) + py.Py_DECREF(<object> _obj) + return <object> _obj _______________________________________________ PySoy-SVN mailing list PySoy-SVN@pysoy.org http://www.pysoy.org/mailman/listinfo/pysoy-svn