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