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