]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #35704 - tbu-:pr_pread_pwrite, r=alexcrichton
authorbors <bors@rust-lang.org>
Sat, 15 Oct 2016 02:33:04 +0000 (19:33 -0700)
committerGitHub <noreply@github.com>
Sat, 15 Oct 2016 02:33:04 +0000 (19:33 -0700)
Implement `read_offset` and `write_offset`

These functions allow to read from and write to a file from multiple
threads without changing the per-file cursor, avoiding the race between
the seek and the read.


Trivial merge