2
0
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:
Thomas Nagy 2019-04-22 00:14:17 +02:00
parent 85c499b1cc
commit 8a32540045
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA

View File

@ -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):
"""