pub fn prepare_seqfile_lock(
path: &OsString,
create_if_missing: bool,
) -> Result<RwLock<File>, Error>Expand description
Call this function to obtain a lock, which you can then pass to SeqFile::open.
Due to how the lock works, it has to be held outside the SeqFile itself.