0

Fix a -p 1 regression

This commit is contained in:
Andrew Chin
2011-03-19 23:49:56 -04:00
parent 346ee004e8
commit 29dc98ce2a

View File

@@ -375,6 +375,8 @@ class QuadtreeGen(object):
# Create a pool
if procs == 1:
pool = FakePool()
global child_quadtree
child_quadtree = self
else:
pool = multiprocessing.Pool(processes=procs,initializer=pool_initializer,initargs=(self,))
#warm up the pool so it reports all the worker id's