您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ throwIfNotWorkItemThread函数代码示例

51自学网 2021-06-03 08:49:18
  C++
这篇教程C++ throwIfNotWorkItemThread函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中throwIfNotWorkItemThread函数的典型用法代码示例。如果您正苦于以下问题:C++ throwIfNotWorkItemThread函数的具体用法?C++ throwIfNotWorkItemThread怎么用?C++ throwIfNotWorkItemThread使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了throwIfNotWorkItemThread函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: throwIfNotWorkItemThread

ThermalRelationshipTable PolicyServicesPlatformConfigurationData::getThermalRelationshipTable(void){    throwIfNotWorkItemThread();    UInt32 dataLength = 0;    DptfMemory binaryData;    binaryData.allocate(Constants::DefaultBufferSize, true);    try    {        getEsifServices()->primitiveExecuteGet(            esif_primitive_type::GET_THERMAL_RELATIONSHIP_TABLE,            ESIF_DATA_BINARY,            binaryData,            binaryData.getSize(),            &dataLength);    }    catch (buffer_too_small e)    {        binaryData.deallocate();        binaryData.allocate(e.getNeededBufferSize(), true);        getEsifServices()->primitiveExecuteGet(            esif_primitive_type::GET_THERMAL_RELATIONSHIP_TABLE,            ESIF_DATA_BINARY,            binaryData,            binaryData.getSize(),            &dataLength);    }    ThermalRelationshipTable trt(BinaryParse::passiveTrtObject(dataLength, binaryData));    binaryData.deallocate();    return trt;}
开发者ID:hoangt,项目名称:dptf,代码行数:35,


示例2: throwIfNotWorkItemThread

Temperature PolicyServicesDomainTemperature::getPowerShareTemperatureThreshold(	UIntN participantIndex,	UIntN domainIndex){	throwIfNotWorkItemThread();	return getParticipantManager()->getParticipantPtr(participantIndex)->getPowerShareTemperatureThreshold(domainIndex);}
开发者ID:01org,项目名称:dptf,代码行数:7,


示例3: throwIfNotWorkItemThread

void PolicyServicesDomainRfProfileControl::setRfProfileCenterFrequency(UIntN participantIndex, UIntN domainIndex,    const Frequency& centerFrequency){    throwIfNotWorkItemThread();    getParticipantManager()->getParticipantPtr(participantIndex)->setRfProfileCenterFrequency(domainIndex,        getPolicyIndex(), centerFrequency);}
开发者ID:LjdCN,项目名称:dptf,代码行数:7,


示例4: throwIfNotWorkItemThread

UInt64 ParticipantServices::primitiveExecuteGetAsUInt64(	esif_primitive_type primitive,	UIntN domainIndex,	UInt8 instance){	throwIfNotWorkItemThread();	return m_esifServices->primitiveExecuteGetAsUInt64(primitive, m_participantIndex, domainIndex, instance);}
开发者ID:01org,项目名称:dptf,代码行数:8,


示例5: throwIfNotWorkItemThread

void PolicyServicesMessageLogging::writeMessageDebug(const DptfMessage& message){    throwIfNotWorkItemThread();    ManagerMessage updatedMessage = ManagerMessage(getDptfManager(), message);    updatedMessage.setPolicyIndex(getPolicyIndex());    getEsifServices()->writeMessageDebug(updatedMessage);}
开发者ID:hoangt,项目名称:dptf,代码行数:9,


示例6: throwIfNotWorkItemThread

void PolicyServicesPlatformPowerState::shutDown(const Temperature& currentTemperature,        const Temperature& tripPointTemperature){    throwIfNotWorkItemThread();    esif_data_complex_shutdown shutdownData;    shutdownData.temperature = currentTemperature;    shutdownData.tripPointTemperature = tripPointTemperature;    getEsifServices()->primitiveExecuteSet(SET_SYSTEM_SHUTDOWN, ESIF_DATA_STRUCTURE,                                           &shutdownData, sizeof(esif_data_complex_shutdown), sizeof(esif_data_complex_shutdown));}
开发者ID:hoangt,项目名称:dptf,代码行数:12,


示例7: throwIfNotWorkItemThread

void PolicyServicesDomainTemperature::setTemperatureThresholds(UIntN participantIndex,    UIntN domainIndex, const TemperatureThresholds& temperatureThresholds){    throwIfNotWorkItemThread();#ifdef ONLY_LOG_TEMPERATURE_THRESHOLDS    // Added to help debug issue with missing temperature threshold events    ManagerMessage message = ManagerMessage(getDptfManager(), FLF,        "Policy is calling PolicyServicesDomainTemperature::setTemperatureThresholds().");    message.addMessage("Aux0", temperatureThresholds.getAux0());    message.addMessage("Aux1", temperatureThresholds.getAux1());    message.setParticipantAndDomainIndex(participantIndex, domainIndex);    message.setPolicyIndex(getPolicyIndex());    getDptfManager()->getEsifServices()->writeMessageDebug(message, MessageCategory::TemperatureThresholds);#endif    getParticipantManager()->getParticipantPtr(participantIndex)->setTemperatureThresholds(        domainIndex, getPolicyIndex(), temperatureThresholds);}
开发者ID:qbbian,项目名称:dptf,代码行数:19,


示例8: throwIfNotWorkItemThread

void PolicyServicesPlatformNotification::notifyPlatformPolicyReleaseControl(){    throwIfNotWorkItemThread();    executeOsc(getPolicy()->getGuid(), OscActionReleaseControl);}
开发者ID:hoangt,项目名称:dptf,代码行数:5,



注:本文中的throwIfNotWorkItemThread函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ throwInvalidAccessError函数代码示例
C++ throwIOException函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。