task_options クラス (コンカレンシー ランタイム)

タスクの作成に使用できるオプションを表します。

構文

class task_options;

メンバー

パブリック コンストラクター

名前 説明
task_options::task_options コンストラクター (コンカレンシー ランタイム) 過負荷です。 タスクの作成オプションに関する既定の一覧

パブリック メソッド

名前 説明
task_options::get_cancellation_token メソッド (コンカレンシー ランタイム) キャンセル トークンを返します
task_options::get_continuation_context メソッド (コンカレンシー ランタイム) 継続コンテキストを返します
task_options::get_scheduler メソッド (コンカレンシー ランタイム) スケジューラを返します
task_options::has_cancellation_token メソッド (コンカレンシー ランタイム) キャンセル トークンがユーザーによって指定されているかどうかを示します
task_options::has_scheduler メソッド (コンカレンシー ランタイム) スケジューラがユーザーによって指定されているかどうかを示します
task_options::set_cancellation_token メソッド (コンカレンシー ランタイム) 指定されたトークンをオプションに設定します
task_options::set_continuation_context メソッド (コンカレンシー ランタイム) 指定された継続コンテキストをオプションに設定します

継承階層

task_options

必要条件

ヘッダー: ppltasks.h

名前空間: concurrency

task_options::get_cancellation_token メソッド (コンカレンシー ランタイム)

キャンセル トークンを返します

cancellation_token get_cancellation_token() const;

戻り値

task_options::get_continuation_context メソッド (コンカレンシー ランタイム)

継続コンテキストを返します

task_continuation_context get_continuation_context() const;

戻り値

task_options::get_scheduler メソッド (コンカレンシー ランタイム)

スケジューラを返します

scheduler_ptr get_scheduler() const;

戻り値

task_options::has_cancellation_token メソッド (コンカレンシー ランタイム)

キャンセル トークンがユーザーによって指定されているかどうかを示します

bool has_cancellation_token() const;

戻り値

task_options::has_scheduler メソッド (コンカレンシー ランタイム)

スケジューラがユーザーによって指定されているかどうかを示します

bool has_scheduler() const;

戻り値

task_options::set_cancellation_token メソッド (コンカレンシー ランタイム)

指定されたトークンをオプションに設定します

void set_cancellation_token(cancellation_token _Token);

パラメーター

_Token

task_options::set_continuation_context メソッド (コンカレンシー ランタイム)

指定された継続コンテキストをオプションに設定します

void set_continuation_context(task_continuation_context _ContinuationContext);

パラメーター

_ContinuationContext

task_options::task_options コンストラクター (コンカレンシー ランタイム)

タスクの作成オプションに関する既定の一覧

task_options();

task_options(
    cancellation_token _Token);

task_options(
    task_continuation_context _ContinuationContext);

task_options(
    cancellation_token _Token,
    task_continuation_context _ContinuationContext);

template<typename _SchedType>
task_options(
    std::shared_ptr<_SchedType> _Scheduler);

task_options(
    scheduler_interface& _Scheduler);

task_options(
    scheduler_ptr _Scheduler);

task_options(
    const task_options& _TaskOptions);

パラメーター

_SchedType

_Token

_ContinuationContext

_Scheduler

_TaskOptions

関連項目

コンカレンシー名前空間