Lines Matching refs:wq
28 # wq = WorkQ()
29 # wq.addwork(func, (arg1, arg2, ...)) # one or more calls
30 # wq.run(nworkers)
31 # The work is done when wq.run() completes.
111 wq = WorkQ()
113 wq.addwork(find, (dir, selector, wq))
116 wq.run(nworkers)
130 # The find procedure -- calls wq.addwork() for subdirectories
132 def find(dir, pred, wq):
150 wq.addwork(find, (fullname, pred, wq))