Commit f2c67858 by Brian Coca

Merge pull request #11989 from bcoca/osx_queue_fix

changed check to avoid OS X broken sem_getvalue()
parents 26ed50ec 2198f48f
...@@ -72,7 +72,7 @@ class ResultProcess(multiprocessing.Process): ...@@ -72,7 +72,7 @@ class ResultProcess(multiprocessing.Process):
self._cur_worker = 0 self._cur_worker = 0
try: try:
if rslt_q.qsize() > 0: if not rslt_q.empty():
debug("worker %d has data to read" % self._cur_worker) debug("worker %d has data to read" % self._cur_worker)
result = rslt_q.get() result = rslt_q.get()
debug("got a result from worker %d: %s" % (self._cur_worker, result)) debug("got a result from worker %d: %s" % (self._cur_worker, result))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment