Skip to content

Commit

Permalink
Refs #21293: Windows warning
Browse files Browse the repository at this point in the history
Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
  • Loading branch information
Mario-DL committed Oct 3, 2024
1 parent 2574749 commit a489d24
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cpp/rtps/reader/LocalReaderView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ void LocalReaderView::dereference()
}

void LocalReaderView::wait_for_references_and_set_status(
size_t references,
size_t n_references,
LocalReaderViewStatus new_status)
{
std::unique_lock<std::mutex> lock(mutex);
if (this->references.load() != references)
if (this->references.load() != n_references)
{
cv.wait(lock, [&]()
{
return this->references.load() == references;
return this->references.load() == n_references;
});
}
status = new_status;
Expand Down

0 comments on commit a489d24

Please sign in to comment.