Moved the garbage collection code to the object owner

This commit is contained in:
Thomas Nagy 2016-04-28 20:12:20 +02:00
parent 7e047a1284
commit b59a04a086
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
3 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
NEW IN WAF 1.9 preview 1
NEW IN WAF 1.9 preview 2
------------------------
* General enhancements:

View File

@ -354,6 +354,8 @@ class BuildContext(Context.Context):
if self.producer.error:
raise Errors.BuildError(self.producer.error)
self.producer.bld = None
self.producer = None
def setup(self, tool, tooldir=None, funs=None):
"""

View File

@ -86,6 +86,7 @@ class Parallel(object):
"""List of :py:class:`waflib.Task.TaskBase` that cannot be executed immediately"""
self.ready = Queue(0)
"""List of :py:class:`waflib.Task.TaskBase` ready to be executed by task consumers"""
self.out = Queue(0)
"""List of :py:class:`waflib.Task.TaskBase` returned by the task consumers"""
@ -304,8 +305,5 @@ class Parallel(object):
self.get_out()
self.ready.put(None)
self.bld = None
#print loop
assert (self.count == 0 or self.stop)