Author: dmeyer
Date: Tue Feb 12 18:29:51 2008
New Revision: 3052
Log:
update doc
Modified:
trunk/base/src/notifier/yieldfunc.py
Modified: trunk/base/src/notifier/yieldfunc.py
==============================================================================
--- trunk/base/src/notifier/yieldfunc.py (original)
+++ trunk/base/src/notifier/yieldfunc.py Tue Feb 12 18:29:51 2008
@@ -267,6 +267,8 @@
# An InProgress we were waiting on raised an exception. We are
# "inheriting" this exception, so return False to prevent it
# from being logged as unhandled in the other InProgress.
+ # Remove the internal timer and the async result to remove bad
+ # circular references.
self._timer = None
self._async = None
self._yield__function = None
@@ -293,6 +295,8 @@
return True
break
except (SystemExit, KeyboardInterrupt):
+ # Remove the internal timer and the async result to remove bad
+ # circular references.
self._timer.stop()
self._timer = None
self._async = None
@@ -302,6 +306,8 @@
result = None
except Exception, e:
# YieldFunction is done with exception
+ # Remove the internal timer and the async result to remove bad
+ # circular references.
self._timer.stop()
self._timer = None
self._async = None
@@ -313,12 +319,12 @@
self._timer.stop()
if isinstance(result, InProgress):
# continue when InProgress is done
- # XXX YIELD CHANGES NOTES
- # XXX Be careful with already finished InProgress
self._async = result
result.connect_both(self._continue, self._continue)
return False
# YieldFunction is done
+ # Remove the internal timer and the async result to remove bad
+ # circular references.
self._timer = None
self.finished(result)
self._async = None
@@ -332,6 +338,8 @@
"""
if self._timer and self._timer.active():
self._timer.stop()
+ # Remove the internal timer and the async result to remove bad
+ # circular references.
self._timer = None
self._yield__function = None
self._async = None
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog