Skip to content

Commit 633530a

Browse files
committed
Refs #22708. Rename methods.
Signed-off-by: Miguel Company <[email protected]>
1 parent c92ada1 commit 633530a

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

src/cpp/rtps/builtin/discovery/participant/PDPSimple.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ void PDPSimple::announceParticipantState(
287287

288288
if (!(dispose || new_change))
289289
{
290-
endpoints->writer.writer_->unsent_changes_reset();
290+
endpoints->writer.writer_->send_periodic_announcement();
291291
}
292292
}
293293
}
@@ -455,7 +455,7 @@ bool PDPSimple::create_dcps_participant_endpoints()
455455
EPROSIMA_LOG_WARNING(RTPS_PDP, "Ignoring initial peers locator " << loc << " : not allowed.");
456456
}
457457
}
458-
writer.writer_->set_fixed_locators(fixed_locators);
458+
writer.writer_->set_initial_peers(fixed_locators);
459459
}
460460
else
461461
{

src/cpp/rtps/builtin/discovery/participant/simple/PDPStatelessWriter.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -84,18 +84,16 @@ void PDPStatelessWriter::unsent_change_added_to_history(
8484
StatelessWriter::unsent_change_added_to_history(change, max_blocking_time);
8585
}
8686

87-
bool PDPStatelessWriter::set_fixed_locators(
87+
void PDPStatelessWriter::set_initial_peers(
8888
const LocatorList& locator_list)
8989
{
9090
std::lock_guard<RecursiveTimedMutex> guard(mp_mutex);
9191

9292
initial_peers_.push_back(locator_list);
9393
mp_RTPSParticipant->createSenderResources(initial_peers_);
94-
95-
return true;
9694
}
9795

98-
void PDPStatelessWriter::unsent_changes_reset()
96+
void PDPStatelessWriter::send_periodic_announcement()
9997
{
10098
mark_all_readers_interested();
10199
reschedule_all_samples();

src/cpp/rtps/builtin/discovery/participant/simple/PDPStatelessWriter.hpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -68,21 +68,21 @@ class PDPStatelessWriter : public StatelessWriter, private IReaderDataFilter
6868
//^^^^^^^^^^^^^^^^^^^^^^ [BaseWriter API] ^^^^^^^^^^^^^^^^^^^^^^^
6969

7070
/**
71-
* @brief Set the locators to which the writer should always send data.
71+
* @brief Set the locators to which the writer should send periodic announcements.
7272
*
7373
* This method is used to configure the initial peers list on the PDP writer.
7474
*
75-
* @param locator_list List of locators to which the writer should always send data.
75+
* @param locator_list List of locators to which the writer should send periodic announcements.
7676
*
7777
* @return true if the locators were set successfully.
7878
*/
79-
bool set_fixed_locators(
79+
void set_initial_peers(
8080
const LocatorList& locator_list);
8181

8282
/**
8383
* Reset the unsent changes.
8484
*/
85-
void unsent_changes_reset();
85+
void send_periodic_announcement();
8686

8787
protected:
8888

0 commit comments

Comments
 (0)