SchedulerPolicy::GetPolicyValue 方法

检索作为 _Key 形参提供的策略键的值。

_CRTIMP unsigned int GetPolicyValue(
   PolicyElementKey _Key
) const;

参数

  • _Key
    要检索值的策略密钥。

返回值

如果支持 _Key 形参所指定的键,则该键的策略值强制转换为 unsigned int

备注

该方法将引发无效策略密钥的 invalid_scheduler_policy_key

要求

**标头:**concrt.h

命名空间: 并发

请参见

参考

SchedulerPolicy 类

SchedulerPolicy::SetPolicyValue 方法

PolicyElementKey 枚举

其他资源

SchedulerPolicy::SetConcurrencyLimits 方法