• T
    Implement reading and writing atomically at certain offsets · b3f2644b
    Tobias Bucher 提交于
    These functions allow to read from and write to a file in one atomic
    action from multiple threads, avoiding the race between the seek and the
    read.
    
    The functions are named `{read,write}_at` on non-Windows (which don't
    change the file cursor), and `seek_{read,write}` on Windows (which
    change the file cursor).
    b3f2644b
fs.rs 12.9 KB