Skip to content

Commit

Permalink
add wait() method to AlignedFileReader
Browse files Browse the repository at this point in the history
  • Loading branch information
hliu18 committed Feb 26, 2024
1 parent 24581a4 commit 525b4cd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/aligned_file_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,9 @@ class AlignedFileReader
// process batch of aligned requests in parallel
// NOTE :: blocking call
virtual void read(std::vector<AlignedRead> &read_reqs, IOContext &ctx, bool async = false) = 0;

#ifdef USE_BING_INFRA
// wait for completion of one request in a batch of requests
virtual void wait(IOContext &ctx, int &completedIndex) = 0;
#endif
};

0 comments on commit 525b4cd

Please sign in to comment.