Set fix limit of 6 worker threads
This commit is contained in:
parent
45fb84e697
commit
f32b5c1e71
1 changed files with 1 additions and 2 deletions
|
@ -259,8 +259,7 @@ class NonstoppingBackgroundWorker(BackgroundWorker):
|
||||||
|
|
||||||
|
|
||||||
class BackgroundThreader:
|
class BackgroundThreader:
|
||||||
def __init__(self, name=None, worker=BackgroundWorker,
|
def __init__(self, name=None, worker=BackgroundWorker, worker_count=6):
|
||||||
worker_count=int(utils.settings('syncThreadNumber'))):
|
|
||||||
self.name = name
|
self.name = name
|
||||||
self._queue = MutablePriorityQueue()
|
self._queue = MutablePriorityQueue()
|
||||||
self._abort = False
|
self._abort = False
|
||||||
|
|
Loading…
Reference in a new issue