'Construct a new :class:`.Dogpile`.'

def __init__(self, expiretime, init=False, lock=None):

    if lock:
        self.dogpilelock = lock
    else:
        self.dogpilelock = threading.Lock()
    self.expiretime = expiretime
    if init:
        self.createdtime = time.time()
