mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-29 11:26:48 -05:00
Now pread and pwrite use is required for multithread
We need to support concurrent access at the same file handle from multiple threads, and they cannot share the same file pointer.
This commit is contained in:
parent
62b7587c3a
commit
18cc80bd7e
4 changed files with 1 additions and 58 deletions
|
|
@ -109,8 +109,6 @@
|
|||
#define write windows_write
|
||||
#undef lseek
|
||||
#define lseek windows_lseek
|
||||
#define HAVE_PREAD 1
|
||||
#define HAVE_PWRITE 1
|
||||
#undef pread
|
||||
#define pread windows_pread
|
||||
#undef pwrite
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue