This commit is contained in:
2024-10-28 12:35:46 -05:00
parent 0650790c43
commit 5fcc59434b
2 changed files with 22 additions and 27 deletions

View File

@@ -68,7 +68,7 @@ private:
private:
bool notified_ = false;
std::size_t read_chunk_index_{};
std::size_t read_chunk_{};
boost::dynamic_bitset<> read_state_;
std::unique_ptr<std::thread> reader_thread_;
std::unique_ptr<std::thread> download_thread_;
@@ -77,8 +77,8 @@ private:
private:
void download_chunk(std::size_t chunk, bool skip_active, bool should_reset);
void download_range(std::size_t start_chunk_index,
std::size_t end_chunk_index, bool should_reset);
void download_range(std::size_t start_chunk, std::size_t end_chunk,
bool should_reset);
void set_modified();