Function rmw_zenoh_cpp::zenoh_shm_alloc_size

Function Documentation

std::optional<size_t> rmw_zenoh_cpp::zenoh_shm_alloc_size()

============================================================================= WARN: This configuration parameter is deprecated, please check transport_optimization\pool_size` Config.json parameter instead. Get the amount of shared memory to be pre-allocated for Zenoh SHM operation based on the environment variable ZENOH_SHM_ALLOC_SIZE.

The behavior is as follows:

  • If not set or <= 0, nullopt is returned - the default Config value is used.

  • Else value of environemnt variable is returned.

Returns:

The amount of shared memory to be pre-allocated for Zenoh SHM operation