ILimitedCpuInfo.h#
Fully qualified name: omni/platforminfo/ILimitedCpuInfo.h
File members: omni/platforminfo/ILimitedCpuInfo.h
// Copyright (c) 2024, NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#pragma once
#include "ICpuInfo.h"
namespace omni
{
namespace platforminfo
{
class ILimitedCpuInfo;
constexpr int32_t kNoQuotaSet = -1;
class ILimitedCpuInfo_abi
: public omni::core::Inherits<omni::core::IObject, OMNI_TYPE_ID("omni.platforminfo.ILimitedCpuInfo")>
{
protected:
virtual size_t getCpuPackageCount_abi() noexcept = 0;
virtual size_t getTotalPhysicalCoreCount_abi() noexcept = 0;
virtual size_t getTotalLogicalCoreCount_abi() noexcept = 0;
virtual bool isFeatureSupported_abi(CpuFeature feature) noexcept = 0;
virtual const char* getPrettyName_abi(size_t cpuIndex) noexcept = 0;
virtual const char* getIdentifier_abi(size_t cpuIndex) noexcept = 0;
virtual const char* getVendor_abi(size_t cpuIndex) noexcept = 0;
virtual uint64_t getProcessorMask_abi(size_t cpuIndex) noexcept = 0;
virtual int32_t getCoreUsageQuota_abi() noexcept = 0;
virtual bool getCoreSetList_abi(OMNI_ATTR("in, out, count=maxCores, not_null") int32_t* cores,
size_t maxCores) noexcept = 0;
virtual size_t getPhysicalCoreCountForPackage_abi(size_t cpuIndex) noexcept = 0;
virtual size_t getLogicalCoreCountForPackage_abi(size_t cpuIndex) noexcept = 0;
};
} // namespace platforminfo
} // namespace omni
#define OMNI_BIND_INCLUDE_INTERFACE_DECL
#include "ILimitedCpuInfo.gen.h"
class omni::platforminfo::ILimitedCpuInfo : public omni::core::Generated<omni::platforminfo::ILimitedCpuInfo_abi>
{
};
#define OMNI_BIND_INCLUDE_INTERFACE_IMPL
#include "ILimitedCpuInfo.gen.h"