def expired(self):
        """Check whether the lock checker has expired."""
        if self.timer.expired():
            raise LockTimeout(
                'Timeout acquiring lock for %(session_id)s' % vars(self),
            )
        return False
Check whether the lock checker has expired.
cherrypy/lib/locking.py