equal
deleted
inserted
replaced
548 return |
548 return |
549 |
549 |
550 # Windows defaults to a limit of 512 open files. A buffer of 128 |
550 # Windows defaults to a limit of 512 open files. A buffer of 128 |
551 # should give us enough headway. |
551 # should give us enough headway. |
552 maxqueue = ui.configint('worker', 'backgroundclosemaxqueue') |
552 maxqueue = ui.configint('worker', 'backgroundclosemaxqueue') |
553 threadcount = ui.configint('worker', 'backgroundclosethreadcount', 4) |
553 threadcount = ui.configint('worker', 'backgroundclosethreadcount') |
554 |
554 |
555 ui.debug('starting %d threads for background file closing\n' % |
555 ui.debug('starting %d threads for background file closing\n' % |
556 threadcount) |
556 threadcount) |
557 |
557 |
558 self._queue = util.queue(maxsize=maxqueue) |
558 self._queue = util.queue(maxsize=maxqueue) |