17.2.6.2. IChangePool

class eprosima::fastrtps::rtps::IChangePool

An interface for classes responsible of cache changes allocation management.

Public Functions

bool reserve_cache(CacheChange_t *&cache_change) = 0

Get a new cache change from the pool.

Return

whether the operation succeeded or not

Pre

cache_change is nullptr

Post

  • cache_change is not nullptr

  • *cache_change equals CacheChange_t() except for the contents of serializedPayload

Parameters
  • [out] cache_change: Pointer to the new cache change.

bool release_cache(CacheChange_t *cache_change) = 0

Return a cache change to the pool.

Return

whether the operation succeeded or not

Pre

  • cache_change is not nullptr

  • cache_change points to a cache change obtained from a call to this->reserve_cache

Parameters
  • [in] cache_change: Pointer to the cache change to release.