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

Modified Files:
        thread.py 
Log Message:
Use insert/pop


Index: thread.py
===================================================================
RCS file: /cvsroot/freevo/kaa/base/src/notifier/thread.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** thread.py   29 Jul 2005 22:16:48 -0000      1.7
--- thread.py   1 Aug 2005 03:15:43 -0000       1.8
***************
*** 75,79 ****
  
              _thread_notifier_lock.acquire()
!             _thread_notifier_queue.append((self, args, kwargs))
              if len(_thread_notifier_queue) == 1:
                  os.write(_thread_notifier_pipe[1], "1")
--- 75,79 ----
  
              _thread_notifier_lock.acquire()
!             _thread_notifier_queue.insert(0, (self, args, kwargs))
              if len(_thread_notifier_queue) == 1:
                  os.write(_thread_notifier_pipe[1], "1")
***************
*** 162,167 ****
      os.read(_thread_notifier_pipe[0], 1)
      while _thread_notifier_queue:
!         callback, args, kwargs = _thread_notifier_queue[0]
!         _thread_notifier_queue = _thread_notifier_queue[1:]
          callback(*args, **kwargs)
          callback.lock.acquire(False)
--- 162,166 ----
      os.read(_thread_notifier_pipe[0], 1)
      while _thread_notifier_queue:
!         callback, args, kwargs = _thread_notifier_queue.pop()
          callback(*args, **kwargs)
          callback.lock.acquire(False)



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to