Пример #1
0
 def lockb(wait):
     b = utils.GreenLockFile(os.path.join(tmpdir, 'b'))
     b.acquire()
     wait.wait()
     b.release()
Пример #2
0
 def locka(wait):
     a = utils.GreenLockFile(os.path.join(tmpdir, 'a'))
     a.acquire()
     wait.wait()
     a.release()
     self.completed = True