Function rmw_zenoh_cpp::zenoh_shm_message_size_threshold

Function Documentation

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

============================================================================= WARN: This envvar is deprecated and, if set, now used to override corresponding Zenoh Config parameter transport_optimization\message_size_threshold. Message size threshold for implicit SHM optimization based on the environment variable ZENOH_SHM_MESSAGE_SIZE_THRESHOLD. Messages smaller than this threshold will not be forwarded through Zenoh SHM

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