xtd 0.2.0
Loading...
Searching...
No Matches
xtd::threading::tasks Namespace Reference

Definition

The xtd::threading::tasks namespace provides types that simplify the work of writing concurrent and asynchronous code. The main types are xtd::threading::tasks::task which represents an asynchronous operation that can be waited on and cancelled, and xtd::threading::tasks::task <result_t>, which is a task that can return a value. The xtd::threading::tasks::task_factory class provides static methods for creating and starting tasks, and the xtd::threading::tasks::task_scheduler class provides the default thread scheduling infrastructure.

The xtd::threading::tasks namespace provides types that simplify the work of writing concurrent and asynchronous code. The main types are xtd::threading::tasks::task_factory which represents an asynchronous operation that can be waited on and cancelled, and xtd::threading::tasks::task_factory <result_t>, which is a task_factory that can return a value. The xtd::threading::tasks::task_factory class provides static methods for creating and starting tasks, and the xtd::threading::tasks::task_scheduler class provides the default thread scheduling infrastructure.

The xtd::threading::tasks namespace provides types that simplify the work of writing concurrent and asynchronous code. The main types are xtd::threading::tasks::parallel which represents an asynchronous operation that can be waited on and cancelled, and xtd::threading::tasks::parallel <result_t>, which is a parallel that can return a value. The xtd::threading::tasks::parallel class provides static methods for creating and starting tasks, and the xtd::threading::tasks::task_scheduler class provides the default thread scheduling infrastructure.

Classes

class  itask
 Represents an interface for an asynchronous operation. More...
 
class  parallel
 Provides support for creating and scheduling Task objects. More...
 
class  task
 Represents an asynchronous operation. More...
 
class  task< void >
 Represents an asynchronous operation. More...
 
class  task_canceled_exception
 Represents an exception used to communicate task cancellation. More...
 
class  task_factory
 Provides support for creating and scheduling Task objects. More...
 
class  wtask
 

Enumerations

enum class  task_creation_options {
  task_creation_options::none ,
  task_creation_options::prefer_fairness ,
  task_creation_options::long_running ,
  task_creation_options::attached_to_parent ,
  task_creation_options::deny_child_attach ,
  task_creation_options::hide_scheduler ,
  task_creation_options::run_continuations_asynchronously
}
 Specifies flags that control optional behavior for the creation and execution of tasks. This enumeration supports a bitwise combination of its member values. More...
 
enum class  task_status {
  task_status::created ,
  task_status::waiting_for_activation ,
  task_status::waiting_to_run ,
  task_status::running ,
  task_status::waiting_for_children_to_complete ,
  task_status::ran_to_completion ,
  task_status::canceled ,
  task_status::faulted
}
 Represents the current stage in the lifecycle of a xtd::threading::tasks::task. More...