15.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
isnullptr
- Post
cache_change
is not nullptr*cache_change
equalsCacheChange_t()
except for the contents ofserializedPayload
- 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 notnullptr
cache_change
points to a cache change obtained from a call tothis->reserve_cache
- Parameters
[in] cache_change
: Pointer to the cache change to release.
-
bool