Exemplo n.º 1
0
 def pool(self):
     if self._pool is None:
         self._pool = threadpool.get_thread_pool(20, disable_threads=False)
     return self._pool
 def pool(self):
     if not getattr(self, '_pool', None):
         self._pool = threadpool.get_thread_pool(size=20, disable_threads=False)
     return self._pool
Exemplo n.º 3
0
 def pool(self):
     if not self._pool:
         self._pool = threadpool.get_thread_pool(10, disable_threads=False)
         fd = tempfile.TemporaryFile()
         self._pool.progress_bar.fd = fd
     return self._pool
Exemplo n.º 4
0
 def pool(self):
     if not self._pool:
         self._pool = threadpool.get_thread_pool(self._num_threads,
                                                 self._disable_threads)
     return self._pool
Exemplo n.º 5
0
 def pool(self):
     if not self._pool:
         self._pool = threadpool.get_thread_pool(self._num_threads,
                                                 self._disable_threads)
     return self._pool
 def pool(self):
     if not getattr(self, '_pool', None):
         self._pool = threadpool.get_thread_pool(size=20,
                                                 disable_threads=False)
     return self._pool