Are there equivalents to pread on different platforms?

后端 未结 3 397
梦毁少年i
梦毁少年i 2021-01-19 11:20

I am writing a concurrent, persistent message queue in C++, which requires concurrent read access to a file without using memory mapped io. Short story is that several threa

3条回答
  •  耶瑟儿~
    2021-01-19 11:32

    On Windows, the ReadFile() function can do it, see the lpOverlapped parameter and this info on async IO.

提交回复
热议问题