File tree Expand file tree Collapse file tree
include/fastdds/rtps/history Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,15 +58,30 @@ class WriterHistory : public rtps::History
5858public:
5959
6060 /* *
61- * Constructor of the WriterHistory.
61+ * @brief Construct a WriterHistory.
62+ *
63+ * @param att Attributes configuring the WriterHistory.
6264 */
6365 FASTDDS_EXPORTED_API WriterHistory (
6466 const HistoryAttributes& att);
6567
68+ /* *
69+ * @brief Construct a WriterHistory with a custom payload pool.
70+ *
71+ * @param att Attributes configuring the WriterHistory.
72+ * @param payload_pool Pool of payloads to be used by the WriterHistory.
73+ */
6674 FASTDDS_EXPORTED_API WriterHistory (
6775 const HistoryAttributes& att,
6876 const std::shared_ptr<IPayloadPool>& payload_pool);
6977
78+ /* *
79+ * @brief Construct a WriterHistory with custom payload and change pools.
80+ *
81+ * @param att Attributes configuring the WriterHistory.
82+ * @param payload_pool Pool of payloads to be used by the WriterHistory.
83+ * @param change_pool Pool of changes to be used by the WriterHistory.
84+ */
7085 FASTDDS_EXPORTED_API WriterHistory (
7186 const HistoryAttributes& att,
7287 const std::shared_ptr<IPayloadPool>& payload_pool,
Original file line number Diff line number Diff line change @@ -87,10 +87,9 @@ WriterHistory::WriterHistory(
8787 const HistoryAttributes& att,
8888 const std::shared_ptr<IPayloadPool>& payload_pool)
8989 : History(att)
90+ , change_pool_(std::make_shared<CacheChangePool>(PoolConfig::from_history_attributes(att)))
9091 , payload_pool_(payload_pool)
9192{
92- PoolConfig cfg = PoolConfig::from_history_attributes (att);
93- change_pool_ = std::make_shared<CacheChangePool>(cfg);
9493}
9594
9695WriterHistory::WriterHistory (
You can’t perform that action at this time.
0 commit comments