예제 #1
0
 def lockb(wait):
     b = lockutils.InterProcessLock(os.path.join(tmpdir, 'b'))
     with b:
         wait.wait()
예제 #2
0
 def locka(wait):
     a = lockutils.InterProcessLock(os.path.join(tmpdir, 'a'))
     with a:
         wait.wait()
     self.completed = True