'>>> lock = MkdirFileLock(\'somefile\')
>>> lock = MkdirFileLock(\'somefile\', threaded=False)'

def __init__(self, path, threaded=True):

    LockBase.__init__(self, path, threaded)
    if threaded:
        tname = ('%x-' % thread.get_ident())
    else:
        tname = ''
    self.unique_name = os.path.join(self.lock_file, ('%s.%s%s' % (self.hostname, tname, self.pid)))
