Exemple #1
0
 def lock_and_sleep(timeout):
     logging.info("In process %s, locking and sleeping...", os.getpid())
     singleton.ensure_lock(name)
     time.sleep(timeout)
Exemple #2
0
 def lock_and_sleep(timeout):
     logging.info("In process %s, locking and sleeping...", os.getpid())
     singleton.ensure_lock(name)
     time.sleep(timeout)
Exemple #3
0
 def test_single_ensure_lock(self):
     singleton.ensure_lock(name)
     singleton.unlock(name)
Exemple #4
0
 def test_single_ensure_lock(self):
     singleton.ensure_lock(name)
     singleton.unlock(name)