Lines Matching +full:os +full:- +full:release
5 # although the improvement is only about 20-30 percent.
7 # a speedup. :-( )
10 # command line syntax, so the predicate it searches for is wired-in,
14 # Usage: parfind.py [-w nworkers] [directory] ...
22 import os
39 # - busy and work are only modified when mutex is locked
40 # - len(work) is the number of jobs ready to be taken
41 # - busy is the number of jobs being done
42 # - todo is locked iff there is no work and somebody is busy
55 self.mutex.release()
57 self.todo.release()
63 self.mutex.release()
64 self.todo.release()
69 self.mutex.release()
71 self.todo.release()
76 self.busy = self.busy - 1
78 self.todo.release()
79 self.mutex.release()
94 for i in range(nworkers-1):
104 opts, args = getopt.getopt(sys.argv[1:], '-w:')
106 if opt == '-w':
109 args = [os.curdir]
119 sys.stderr.write('Total time %r sec.\n' % (t2-t1))
122 # The predicate -- defines what files we look for.
130 # The find procedure -- calls wq.addwork() for subdirectories
134 names = os.listdir(dir)
135 except os.error, msg:
139 if name not in (os.curdir, os.pardir):
140 fullname = os.path.join(dir, name)
142 stat = os.lstat(fullname)
143 except os.error, msg:
149 if not os.path.ismount(fullname):