mirror of
https://github.com/YosysHQ/sby.git
synced 2025-04-18 19:19:00 +00:00
Do not spawn tasks in SbyTask constructor; rely on taskloop to do it.
Signed-off-by: William D. Jones <thor0505@comcast.net>
This commit is contained in:
parent
b5350a2eb9
commit
e618a1591d
|
@ -81,17 +81,12 @@ class SbyTask:
|
|||
self.job.tasks_pending.append(self)
|
||||
|
||||
for dep in self.deps:
|
||||
dep.register_dep(self)
|
||||
if not dep.finished:
|
||||
dep.notify.append(self)
|
||||
|
||||
self.output_callback = None
|
||||
self.exit_callback = None
|
||||
|
||||
def register_dep(self, next_task):
|
||||
if self.finished:
|
||||
next_task.poll()
|
||||
else:
|
||||
self.notify.append(next_task)
|
||||
|
||||
def log(self, line):
|
||||
if line is not None and (self.noprintregex is None or not self.noprintregex.match(line)):
|
||||
if self.logfile is not None:
|
||||
|
|
Loading…
Reference in a new issue