mercurial/vfs.py
changeset 33232 4531a967e7f1
parent 33231 d19804c16710
child 33234 b62d13506860
equal deleted inserted replaced
33231:d19804c16710 33232:4531a967e7f1
   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)