Skip to content

Commit

Permalink
Fix comments for function ReCachePages
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Apr 4, 2024
1 parent 87a152c commit 912deb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ccstruct/imagedata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ void DocumentData::Shuffle() {
}
}

// Locks the pages_mutex_ and Loads as many pages can fit in max_memory_
// Locks the pages_mutex_ and loads as many pages as will fit into max_memory_
// starting at index pages_offset_.
bool DocumentData::ReCachePages() {
std::lock_guard<std::mutex> lock(pages_mutex_);
Expand Down
2 changes: 1 addition & 1 deletion src/ccstruct/imagedata.h
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class DocumentData {
std::lock_guard<std::mutex> lock(general_mutex_);
memory_used_ = memory_used;
}
// Locks the pages_mutex_ and Loads as many pages can fit in max_memory_
// Locks the pages_mutex_ and loads as many pages as will fit into max_memory_
// starting at index pages_offset_.
bool ReCachePages();

Expand Down

0 comments on commit 912deb3

Please sign in to comment.