Exemplo n.º 1
0
 def lockb(wait):
     b = utils.GreenLockFile(os.path.join(tmpdir, 'b'))
     b.acquire()
     wait.wait()
     b.release()
Exemplo n.º 2
0
 def locka(wait):
     a = utils.GreenLockFile(os.path.join(tmpdir, 'a'))
     a.acquire()
     wait.wait()
     a.release()
     self.completed = True