Commit 8ac95135 authored by Denis Bilenko's avatar Denis Bilenko

ThreadPool: issue _semaphore._start_notify() after maxsize change

parent f43db0d6
......@@ -36,6 +36,8 @@ class ThreadPool(object):
self._maxsize = maxsize
self._remove_threads()
self._add_threads()
# make sure all currently blocking spawn() start unlocking if maxsize increased
self._semaphore._start_notify()
def _get_maxsize(self):
return self._maxsize
......
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