Skip to content

Commit

Permalink
Modify threadpool task queue
Browse files Browse the repository at this point in the history
  • Loading branch information
dt3310321 committed Jan 10, 2018
1 parent f438fe4 commit ca2d335
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qcloud_cos/cos_threadpool.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ def get_result(self):

class SimpleThreadPool:

def __init__(self, num_threads=5):
def __init__(self, num_threads=5, num_queue=0):
self._num_threads = num_threads
self._queue = Queue()
self._queue = Queue(num_queue)
self._lock = Lock()
self._active = False
self._workers = list()
Expand Down

0 comments on commit ca2d335

Please sign in to comment.