Skip to content

Commit 477a6e3

Browse files
committed
Refs #23432. Apply review suggestions.
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
1 parent 5644be9 commit 477a6e3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

code/DDSCodeTester.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4432,10 +4432,15 @@ void dds_qos_examples()
44324432
// This example only applies to DataWriter entities
44334433
DataWriterQos writer_qos;
44344434
// The TransportPriorityQosPolicy is constructed with value 0 by default
4435-
// Change the strength to 12
4435+
// Change the value to 12
44364436
writer_qos.transport_priority().value = 12;
44374437
// Use modified QoS in the creation of the corresponding DataWriter
44384438
writer_ = publisher_->create_datawriter(topic_, writer_qos);
4439+
4440+
// Change the TransportPriorityQosPolicy at runtime
4441+
writer_qos.transport_priority().value = 23;
4442+
// Update the QoS in the corresponding entity
4443+
writer_->set_qos(writer_qos);
44394444
//!--
44404445
}
44414446

0 commit comments

Comments
 (0)