Fix a -p 1 regression
This commit is contained in:
@@ -375,6 +375,8 @@ class QuadtreeGen(object):
|
|||||||
# Create a pool
|
# Create a pool
|
||||||
if procs == 1:
|
if procs == 1:
|
||||||
pool = FakePool()
|
pool = FakePool()
|
||||||
|
global child_quadtree
|
||||||
|
child_quadtree = self
|
||||||
else:
|
else:
|
||||||
pool = multiprocessing.Pool(processes=procs,initializer=pool_initializer,initargs=(self,))
|
pool = multiprocessing.Pool(processes=procs,initializer=pool_initializer,initargs=(self,))
|
||||||
#warm up the pool so it reports all the worker id's
|
#warm up the pool so it reports all the worker id's
|
||||||
|
|||||||
Reference in New Issue
Block a user