def release_readlock(lockdir_name):
    """Release a previously obtained readlock.

    Parameters
    ----------
    lockdir_name : str
        Name of the previously obtained readlock

    """
    # Make sure the lock still exists before deleting it
    if os.path.exists(lockdir_name) and os.path.isdir(lockdir_name):
        os.rmdir(lockdir_name)