# cherrypy.lib.locking module

class cherrypy.lib.locking.LockChecker(session_id, timeout)

  Bases: `object`

  Keep track of the time and detect if a timeout has expired.

  expired()

exception cherrypy.lib.locking.LockTimeout

  Bases: `Exception`

  An exception when a lock could not be acquired before a timeout period

class cherrypy.lib.locking.NeverExpires

  Bases: `object`

  expired()

class cherrypy.lib.locking.Timer(expiration)

  Bases: `object`

  A simple timer that will indicate when an expiration time has passed.

  classmethod after(elapsed)

    Return a timer that will expire after `elapsed` passes.

  expired()