Update of /cvsroot/freevo/kaa/base/src/notifier
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14110

Modified Files:
        signals.py 
Log Message:
use OneShotTimer from callback to schedule signal

Index: signals.py
===================================================================
RCS file: /cvsroot/freevo/kaa/base/src/notifier/signals.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** signals.py  13 Jul 2005 20:21:02 -0000      1.6
--- signals.py  14 Jul 2005 08:40:06 -0000      1.7
***************
*** 31,41 ****
  
  from signal import *
! 
! try:
!     # try to import pyNotifier
!     import notifier
! except ImportError:
!     # use a copy of nf_generic
!     import nf_generic as notifier
  
  _signal_dict = {}
--- 31,35 ----
  
  from signal import *
! from callback import OneShotTimer
  
  _signal_dict = {}
***************
*** 67,70 ****
--- 61,66 ----
  
  
+ _signal_timer = OneShotTimer(_signal_handler)
+ 
  def _signal_catch(sig, frame):
      """
***************
*** 76,79 ****
      # FIXME: let's hope this works because the handler
      # is called asynchron
!     notifier.addTimer(0, _signal_handler)
      return True
--- 72,76 ----
      # FIXME: let's hope this works because the handler
      # is called asynchron
!     if not _signal_timer.active():
!         _signal_timer.start(0)
      return True



-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP, 
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to