Scheduler::SetDefaultSchedulerPolicy 方法
可讓您使用使用者定義的原則建立預設排程器。 只能在處理序中沒有任何預設排程器時呼叫這個方法。 一旦設定預設原則後,該原則就會保持作用中,直到 SetDefaultSchedulerPolicy 或 ResetDefaultSchedulerPolicy 方法的下一個有效呼叫。
_CRTIMP static void __cdecl SetDefaultSchedulerPolicy(
const SchedulerPolicy& _Policy
);
參數
- _Policy
要設為預設排程器原則的原則。
備註
如果在預設排程器已存在於處理序中時呼叫 SetDefaultSchedulerPolicy 方法,執行階段會擲回 default_scheduler_exists 例外狀況。
需求
標頭: concrt.h
**命名空間:**並行