| description | Learn more about: task_options Class (Concurrency Runtime) | |
|---|---|---|
| title | task_options Class (Concurrency Runtime) | |
| ms.date | 11/04/2016 | |
| f1_keywords |
|
|
| ms.assetid | f93d146b-70f7-46ec-8c2f-c33b8bb0af69 |
Represents the allowed options for creating a task
class task_options;| Name | Description |
|---|---|
| task_options::task_options Constructor (Concurrency Runtime) | Overloaded. Default list of task creation options |
| Name | Description |
|---|---|
| task_options::get_cancellation_token Method (Concurrency Runtime) | Returns the cancellation token |
| task_options::get_continuation_context Method (Concurrency Runtime) | Returns the continuation context |
| task_options::get_scheduler Method (Concurrency Runtime) | Returns the scheduler |
| task_options::has_cancellation_token Method (Concurrency Runtime) | Indicates whether a cancellation token was specified by the user |
| task_options::has_scheduler Method (Concurrency Runtime) | Indicates whether a scheduler n was specified by the user |
| task_options::set_cancellation_token Method (Concurrency Runtime) | Sets the given token in the options |
| task_options::set_continuation_context Method (Concurrency Runtime) | Sets the given continuation context in the options |
task_options
Header: ppltasks.h
Namespace: concurrency
Returns the cancellation token
cancellation_token get_cancellation_token() const;Returns the continuation context
task_continuation_context get_continuation_context() const;Returns the scheduler
scheduler_ptr get_scheduler() const;Indicates whether a cancellation token was specified by the user
bool has_cancellation_token() const;Indicates whether a scheduler n was specified by the user
bool has_scheduler() const;Sets the given token in the options
void set_cancellation_token(cancellation_token _Token);_Token
Sets the given continuation context in the options
void set_continuation_context(task_continuation_context _ContinuationContext);_ContinuationContext
Default list of task creation 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