def timer(me, now):
return _maybecall(me._timer, ())
-cdef void _timerfunc(timeval *now, void *arg):
+cdef void _timerfunc2(timeval *now, void *arg):
cdef SelTimer st
st = <SelTimer>arg
st._dead()
st.timer(_tvtofloat(now))
+cdef void _timerfunc(timeval *now, void *arg):
+ PyEval_AcquireLock()
+ _timerfunc2(now, arg)
+ PyEval_ReleaseLock()
#----- That's all, folks ----------------------------------------------------