Update of /cvsroot/freevo/kaa/base/src/notifier
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18593
Modified Files:
thread.py
Log Message:
use Timer
Index: thread.py
===================================================================
RCS file: /cvsroot/freevo/kaa/base/src/notifier/thread.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** thread.py 7 Jul 2005 13:40:44 -0000 1.1
--- thread.py 13 Jul 2005 20:38:10 -0000 1.2
***************
*** 57,66 ****
import logging
! try:
! # try to import pyNotifier
! import notifier
! except ImportError:
! # use a copy of nf_generic
! import nf_generic as notifier
# get logging object
--- 57,62 ----
import logging
! # notifier imports
! from callback import Timer
# get logging object
***************
*** 142,146 ****
def __init__(self):
self.__threads = []
! self.__timer = None
--- 138,142 ----
def __init__(self):
self.__threads = []
! self.__timer = Timer(self.check)
***************
*** 150,155 ****
"""
self.__threads.append(thread)
! if not self.__timer:
! self.__timer = notifier.addTimer( 10, self.check )
--- 146,151 ----
"""
self.__threads.append(thread)
! if not self.__timer.active():
! self.__timer.start(10)
***************
*** 196,200 ****
if not self.__threads:
# remove watcher from notifier
- self.__timer = None
return False
return True
--- 192,195 ----
-------------------------------------------------------
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