Skip to content

Commit a24e4ab

Browse files
committed
Apply more suggestions
Signed-off-by: tempate <[email protected]>
1 parent 0b875fd commit a24e4ab

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ddspipe_core/include/ddspipe_core/efficiency/payload/PayloadPoolMediator.hpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ namespace ddspipe {
3333
namespace core {
3434

3535
/**
36-
* DataWriters always allocate memory for a the payload when writing it to the \c PayloadPool. In the DdsPipe, however,
37-
* the \c payload is already in the \c PayloadPool (saved by the DataReader), so we can reuse it to avoid an extra copy.
36+
* DataWriters always allocate memory for a payload when writing it to the \c PayloadPool. In the DdsPipe, however, the
37+
* \c payload is already in the \c PayloadPool (saved by the Reader), so we can reuse it to avoid an extra copy.
3838
*
3939
* This class works as a mediator between the \c FastPayloadPool and the DataWriter's write functions, to avoid making
4040
* the extra copy.

ddspipe_participants/src/cpp/types/dds/TopicDataType.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ bool TopicDataType::serialize(
6666
}
6767
else
6868
{
69+
logWarning(DDSPIPE_DDS_TYPESUPPORT, "Copying the payload between two different payload pools.");
70+
6971
// The src and dst Payload Pools are different. The payload must be copied.
7072
target_payload->copy(&src_payload->payload);
7173
}

0 commit comments

Comments
 (0)