Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Stellt die zulässigen Optionen zum Erstellen einer Aufgabe dar
Syntax
class task_options;
Member
Öffentliche Konstruktoren
| Name | Beschreibung |
|---|---|
| task_options::task_options-Konstruktor (Parallelitätslaufzeit) | Überladen. Standardliste von Aufgabenerstellungsoptionen |
Öffentliche Methoden
| Name | Beschreibung |
|---|---|
| task_options::get_cancellation_token-Methode (Concurrency Runtime) | Gibt das Abbruchtoken zurück. |
| task_options::get_continuation_context-Methode (Concurrency Runtime) | Gibt den Fortsetzungskontext zurück. |
| task_options::get_scheduler-Methode (Concurrency Runtime) | Gibt den Planer zurück. |
| task_options::has_cancellation_token-Methode (Concurrency Runtime) | Gibt an, ob ein Abbruchtoken vom Benutzer angegeben wurde. |
| task_options::has_scheduler-Methode (Concurrency Runtime) | Gibt an, ob ein Planer vom Benutzer angegeben wurde. |
| task_options::set_cancellation_token-Methode (Concurrency Runtime) | Legt das angegebene Token in den Optionen fest. |
| task_options::set_continuation_context-Methode (Concurrency Runtime) | Legt den angegebenen Fortsetzungskontext in den Optionen fest. |
Vererbungshierarchie
task_options
Anforderungen
Kopfzeile: ppltasks.h
Namespace: Parallelität
task_options::get_cancellation_token-Methode (Concurrency Runtime)
Gibt das Abbruchtoken zurück.
cancellation_token get_cancellation_token() const;
Rückgabewert
task_options::get_continuation_context-Methode (Concurrency Runtime)
Gibt den Fortsetzungskontext zurück.
task_continuation_context get_continuation_context() const;
Rückgabewert
task_options::get_scheduler-Methode (Concurrency Runtime)
Gibt den Planer zurück.
scheduler_ptr get_scheduler() const;
Rückgabewert
task_options::has_cancellation_token-Methode (Concurrency Runtime)
Gibt an, ob ein Abbruchtoken vom Benutzer angegeben wurde.
bool has_cancellation_token() const;
Rückgabewert
task_options::has_scheduler-Methode (Concurrency Runtime)
Gibt an, ob ein Planer vom Benutzer angegeben wurde.
bool has_scheduler() const;
Rückgabewert
task_options::set_cancellation_token-Methode (Concurrency Runtime)
Legt das angegebene Token in den Optionen fest.
void set_cancellation_token(cancellation_token _Token);
Parameter
_Token
task_options::set_continuation_context-Methode (Concurrency Runtime)
Legt den angegebenen Fortsetzungskontext in den Optionen fest.
void set_continuation_context(task_continuation_context _ContinuationContext);
Parameter
_ContinuationContext
task_options::task_options-Konstruktor (Parallelitätslaufzeit)
Standardliste von Aufgabenerstellungsoptionen
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);
Parameter
_SchedType
_Token
_ContinuationContext
_Scheduler
_TaskOptions