#define FW_HANDLE_ALIGNMENT
Alignment of handle storage.
PlatformSizeType FwSizeType
U8 CpuHandleStorage[FW_CPU_HANDLE_MAX_SIZE]
Cpu variable handle parent.
CpuInterface & operator=(const CpuInterface &other) override=delete
assignment operator is forbidden
static void init()
initialize the singleton
Cpu(const CpuInterface &other)=delete
copy constructor is forbidden
CpuHandle * getHandle() override
return the underlying cpu handle (implementation specific).
Status _getCount(FwSizeType &cpu_count) override
Request the count of the CPUs detected by the system.
Cpu(const CpuInterface *other)=delete
copy constructor is forbidden
Status _getTicks(Ticks &ticks, FwSizeType cpu_index) override
Get the CPU tick information for a given CPU.
~Cpu() final
default virtual destructor
static Status getTicks(Ticks &ticks, FwSizeType cpu_index)
Get the CPU tick information for a given CPU.
static Cpu & getSingleton()
return singleton
static Status getCount(FwSizeType &cpu_count)
Request the count of the CPUs detected by the system.
interface for cpu implementation
virtual Status _getCount(FwSizeType &cpu_count)=0
Request the count of the CPUs detected by the system.
virtual CpuInterface & operator=(const CpuInterface &other)=delete
assignment operator is forbidden
virtual Status _getTicks(Ticks &ticks, FwSizeType cpu_index)=0
Get the CPU tick information for a given CPU.
CpuInterface(const CpuInterface &other)=delete
copy constructor is forbidden
CpuInterface()=default
Default constructor.
static CpuInterface * getDelegate(CpuHandleStorage &aligned_new_memory)
provide a pointer to a Mutex delegate object
virtual ~CpuInterface()=default
Default destructor.
virtual CpuHandle * getHandle()=0
return the underlying cpu handle (implementation specific).
Status
Generic OK/ERROR status.
Generic used/total struct.