21 static Cpu _singleton;
27 return this->m_delegate.
_getCount(cpu_count);
32 return this->m_delegate.
_getTicks(ticks, cpu_index);
PlatformSizeType FwSizeType
Cpu variable handle parent.
static void init()
initialize the singleton
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.
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 Status _getTicks(Ticks &ticks, FwSizeType cpu_index)=0
Get the CPU tick information for a given CPU.
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.