

def acquire(self):
    while True:
        acquired = self._lock.acquire(False)
        if acquired:
            return
        time.sleep(self.SLICE)

dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/voodoo/lock.py UnfairLock.acquire/original