Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1:/tmp/cvs-serv11221
Modified Files:
childapp.py
Log Message:
add kill() function to kill the thread
Index: childapp.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/childapp.py,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** childapp.py 22 Oct 2003 17:22:36 -0000 1.35
--- childapp.py 23 Oct 2003 17:57:23 -0000 1.36
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.36 2003/10/23 17:57:23 dischi
+ # add kill() function to kill the thread
+ #
# Revision 1.35 2003/10/22 17:22:36 dischi
# better stop() exception handling
***************
*** 411,415 ****
time.sleep(0.1)
!
def run(self):
global freevo_shutdown
--- 414,429 ----
time.sleep(0.1)
!
! def kill(self):
! try:
! self.stop()
! except OSError:
! pass
! self.mode = 'kill'
! self.mode_flag.set()
! while self.mode != 'killed':
! pass
!
!
def run(self):
global freevo_shutdown
***************
*** 419,422 ****
--- 433,440 ----
self.mode_flag.clear()
+ elif self.mode == 'kill':
+ self.mode = 'killed'
+ return
+
elif self.mode == 'play':
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog