Changeset 16 for trunk/lib/nanownlib/parallel.py
- Timestamp:
- 08/01/15 19:01:31 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/nanownlib/parallel.py
r11 r16 48 48 49 49 def stop(self): 50 for i in range(0,len(self.workers)): 50 try: 51 while True: 52 self.workq.get(block=False) 53 self.workq.task_done() 54 except queue.Empty as e: 55 pass 56 57 for i in range(len(self.workers)): 51 58 self.workq.put(None) 52 59 for w in self.workers:
Note: See TracChangeset
for help on using the changeset viewer.