17 #ifndef IOX_POSH_POPO_BUILDING_BLOCKS_CHUNK_DISTRIBUTOR_DATA_HPP
18 #define IOX_POSH_POPO_BUILDING_BLOCKS_CHUNK_DISTRIBUTOR_DATA_HPP
20 #include "iceoryx_posh/iceoryx_posh_types.hpp"
21 #include "iceoryx_posh/internal/log/posh_logging.hpp"
22 #include "iceoryx_posh/internal/mepoo/shm_safe_unmanaged_chunk.hpp"
23 #include "iceoryx_posh/internal/popo/building_blocks/chunk_queue_pusher.hpp"
24 #include "iceoryx_posh/popo/port_queue_policies.hpp"
25 #include "iceoryx_utils/cxx/algorithm.hpp"
26 #include "iceoryx_utils/cxx/vector.hpp"
27 #include "iceoryx_utils/error_handling/error_handling.hpp"
28 #include "iceoryx_utils/internal/posix_wrapper/mutex.hpp"
29 #include "iceoryx_utils/internal/relocatable_pointer/relative_pointer.hpp"
38 template <
typename ChunkDistributorDataProperties,
typename LockingPolicy,
typename ChunkQueuePusherType>
42 using LockGuard_t = std::lock_guard<const ThisType_t>;
43 using ChunkQueuePusher_t = ChunkQueuePusherType;
44 using ChunkQueueData_t =
typename ChunkQueuePusherType::MemberType_t;
45 using ChunkDistributorDataProperties_t = ChunkDistributorDataProperties;
47 ChunkDistributorData(
const SubscriberTooSlowPolicy policy,
const uint64_t historyCapacity = 0u) noexcept;
49 const uint64_t m_historyCapacity;
51 using QueueContainer_t =
52 cxx::vector<rp::RelativePointer<ChunkQueueData_t>, ChunkDistributorDataProperties_t::MAX_QUEUES>;
53 QueueContainer_t m_queues;
60 cxx::vector<mepoo::ShmSafeUnmanagedChunk, ChunkDistributorDataProperties_t::MAX_HISTORY_CAPACITY>;
62 const SubscriberTooSlowPolicy m_subscriberTooSlowPolicy;
68 #include "iceoryx_posh/internal/popo/building_blocks/chunk_distributor_data.inl"
Definition: service_description.hpp:29
Definition: chunk_distributor_data.hpp:40
cxx::vector< mepoo::ShmSafeUnmanagedChunk, ChunkDistributorDataProperties_t::MAX_HISTORY_CAPACITY > HistoryContainer_t
Definition: chunk_distributor_data.hpp:60