Home | History | Annotate | Download | only in cros

Lines Matching defs:lock

19 def lock(filename):
32 logging.info('Waiting for cache lock...')
41 # Normally we should aqcuire the lock immediately. Once we
43 # overloaded or a lock didn't get cleaned up. Take one for the
44 # team, break the lock and report a failure. This should fix
45 # the lock for following tests. If the failure affects more than
47 logging.error('Permanent lock failure. Trying to break lock.')
49 # recursive lock breaking problem. We may have to kill every
54 raise error.TestFail('Error: permanent cache lock failure.')
56 logging.info('Acquired cache lock after %d attempts.', attempts)
61 logging.info('Released cache lock.')