mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-22 09:57:15 +01:00
Workaround for Issue 2232
This commit is contained in:
parent
85c499b1cc
commit
8a32540045
@ -337,11 +337,16 @@ class Parallel(object):
|
||||
|
||||
if hasattr(tsk, 'semaphore'):
|
||||
sem = tsk.semaphore
|
||||
sem.release(tsk)
|
||||
while sem.waiting and not sem.is_locked():
|
||||
# take a frozen task, make it ready to run
|
||||
x = sem.waiting.pop()
|
||||
self._add_task(x)
|
||||
try:
|
||||
sem.release(tsk)
|
||||
except KeyError:
|
||||
# TODO
|
||||
pass
|
||||
else:
|
||||
while sem.waiting and not sem.is_locked():
|
||||
# take a frozen task, make it ready to run
|
||||
x = sem.waiting.pop()
|
||||
self._add_task(x)
|
||||
|
||||
def get_out(self):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user