mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-25 19:30:04 +01:00
Moved the garbage collection code to the object owner
This commit is contained in:
parent
7e047a1284
commit
b59a04a086
@ -1,4 +1,4 @@
|
|||||||
NEW IN WAF 1.9 preview 1
|
NEW IN WAF 1.9 preview 2
|
||||||
------------------------
|
------------------------
|
||||||
|
|
||||||
* General enhancements:
|
* General enhancements:
|
||||||
|
@ -354,6 +354,8 @@ class BuildContext(Context.Context):
|
|||||||
|
|
||||||
if self.producer.error:
|
if self.producer.error:
|
||||||
raise Errors.BuildError(self.producer.error)
|
raise Errors.BuildError(self.producer.error)
|
||||||
|
self.producer.bld = None
|
||||||
|
self.producer = None
|
||||||
|
|
||||||
def setup(self, tool, tooldir=None, funs=None):
|
def setup(self, tool, tooldir=None, funs=None):
|
||||||
"""
|
"""
|
||||||
|
@ -86,6 +86,7 @@ class Parallel(object):
|
|||||||
"""List of :py:class:`waflib.Task.TaskBase` that cannot be executed immediately"""
|
"""List of :py:class:`waflib.Task.TaskBase` that cannot be executed immediately"""
|
||||||
|
|
||||||
self.ready = Queue(0)
|
self.ready = Queue(0)
|
||||||
|
"""List of :py:class:`waflib.Task.TaskBase` ready to be executed by task consumers"""
|
||||||
|
|
||||||
self.out = Queue(0)
|
self.out = Queue(0)
|
||||||
"""List of :py:class:`waflib.Task.TaskBase` returned by the task consumers"""
|
"""List of :py:class:`waflib.Task.TaskBase` returned by the task consumers"""
|
||||||
@ -304,8 +305,5 @@ class Parallel(object):
|
|||||||
self.get_out()
|
self.get_out()
|
||||||
|
|
||||||
self.ready.put(None)
|
self.ready.put(None)
|
||||||
self.bld = None
|
|
||||||
|
|
||||||
#print loop
|
|
||||||
assert (self.count == 0 or self.stop)
|
assert (self.count == 0 or self.stop)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user