48 friend class SharedCoreCommunication;
49 friend class VirtualCore;
53 const std::size_t _nb_core;
54 const std::size_t _size;
55 std::array<uint8_t, MaxCores> _set;
74 [[nodiscard]]
static CoreSet
75 build(uint32_t nb_core = std::thread::hardware_concurrency()) noexcept;
94 [[nodiscard]] uint32_t
getSize() const noexcept;
const CoreIdSet & raw() const noexcept
Get the raw set of core IDs.
static CoreSet build(uint32_t nb_core=std::thread::hardware_concurrency()) noexcept
Build a CoreSet with a specified number of cores.
uint32_t getSize() const noexcept
Get the size of the core set.
uint32_t getNbCore() const noexcept
Get the number of cores in the set.
CoreId resolve(std::size_t id) const noexcept
Resolve a core ID to its index in the set.
CoreSet(CoreIdSet const &set) noexcept
Construct a CoreSet with a specific set of cores.
Actor and core identification for the QB Actor Framework.
uint16_t CoreId
Type definition for core identifiers.
Definition ActorId.h:51
CoreIdBitSet CoreIdSet
Efficient set implementation for storing CoreId values.
Definition ActorId.h:363
Advanced type traits and metaprogramming utilities for the QB Framework.
Optimized unordered set implementations.