这篇教程C++ throwIfNotWorkItemThread函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中throwIfNotWorkItemThread函数的典型用法代码示例。如果您正苦于以下问题:C++ throwIfNotWorkItemThread函数的具体用法?C++ throwIfNotWorkItemThread怎么用?C++ throwIfNotWorkItemThread使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了throwIfNotWorkItemThread函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: throwIfNotWorkItemThreadThermalRelationshipTable 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: throwIfNotWorkItemThreadTemperature PolicyServicesDomainTemperature::getPowerShareTemperatureThreshold( UIntN participantIndex, UIntN domainIndex){ throwIfNotWorkItemThread(); return getParticipantManager()->getParticipantPtr(participantIndex)->getPowerShareTemperatureThreshold(domainIndex);}
开发者ID:01org,项目名称:dptf,代码行数:7,
示例3: throwIfNotWorkItemThreadvoid PolicyServicesDomainRfProfileControl::setRfProfileCenterFrequency(UIntN participantIndex, UIntN domainIndex, const Frequency& centerFrequency){ throwIfNotWorkItemThread(); getParticipantManager()->getParticipantPtr(participantIndex)->setRfProfileCenterFrequency(domainIndex, getPolicyIndex(), centerFrequency);}
开发者ID:LjdCN,项目名称:dptf,代码行数:7,
示例4: throwIfNotWorkItemThreadUInt64 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: throwIfNotWorkItemThreadvoid PolicyServicesMessageLogging::writeMessageDebug(const DptfMessage& message){ throwIfNotWorkItemThread(); ManagerMessage updatedMessage = ManagerMessage(getDptfManager(), message); updatedMessage.setPolicyIndex(getPolicyIndex()); getEsifServices()->writeMessageDebug(updatedMessage);}
开发者ID:hoangt,项目名称:dptf,代码行数:9,
示例6: throwIfNotWorkItemThreadvoid 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: throwIfNotWorkItemThreadvoid 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: throwIfNotWorkItemThreadvoid PolicyServicesPlatformNotification::notifyPlatformPolicyReleaseControl(){ throwIfNotWorkItemThread(); executeOsc(getPolicy()->getGuid(), OscActionReleaseControl);}
开发者ID:hoangt,项目名称:dptf,代码行数:5,
注:本文中的throwIfNotWorkItemThread函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ throwInvalidAccessError函数代码示例 C++ throwIOException函数代码示例 |