xtd 0.2.0
Loading...
Searching...
No Matches
task_creation_options.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "../../enum.hpp"
6
8namespace xtd {
10 namespace threading {
12 namespace tasks {
39
41 [[maybe_unused]] inline task_creation_options& operator ^=(task_creation_options& lhs, task_creation_options rhs) {lhs = static_cast<task_creation_options>(static_cast<std::underlying_type<task_creation_options>::type>(lhs) ^ static_cast<std::underlying_type<task_creation_options>::type>(rhs)); return lhs;}
42 [[maybe_unused]] inline task_creation_options& operator &=(task_creation_options& lhs, task_creation_options rhs) {lhs = static_cast<task_creation_options>(static_cast<std::underlying_type<task_creation_options>::type>(lhs) & static_cast<std::underlying_type<task_creation_options>::type>(rhs)); return lhs;}
43 [[maybe_unused]] inline task_creation_options& operator |=(task_creation_options& lhs, task_creation_options rhs) {lhs = static_cast<task_creation_options>(static_cast<std::underlying_type<task_creation_options>::type>(lhs) | static_cast<std::underlying_type<task_creation_options>::type>(rhs)); return lhs;}
44 [[maybe_unused]] inline task_creation_options& operator +=(task_creation_options& lhs, task_creation_options rhs) {lhs = static_cast<task_creation_options>(static_cast<std::underlying_type<task_creation_options>::type>(lhs) + static_cast<std::underlying_type<task_creation_options>::type>(rhs)); return lhs;}
45 [[maybe_unused]] inline task_creation_options& operator -=(task_creation_options& lhs, task_creation_options rhs) {lhs = static_cast<task_creation_options>(static_cast<std::underlying_type<task_creation_options>::type>(lhs) - static_cast<std::underlying_type<task_creation_options>::type>(rhs)); return lhs;}
46 [[maybe_unused]] inline task_creation_options operator ^(task_creation_options lhs, task_creation_options rhs) {return static_cast<task_creation_options>(static_cast<std::underlying_type<task_creation_options>::type>(lhs) ^ static_cast<std::underlying_type<task_creation_options>::type>(rhs));}
47 [[maybe_unused]] inline task_creation_options operator &(task_creation_options lhs, task_creation_options rhs) {return static_cast<task_creation_options>(static_cast<std::underlying_type<task_creation_options>::type>(lhs) & static_cast<std::underlying_type<task_creation_options>::type>(rhs));}
48 [[maybe_unused]] inline task_creation_options operator |(task_creation_options lhs, task_creation_options rhs) {return static_cast<task_creation_options>(static_cast<std::underlying_type<task_creation_options>::type>(lhs) | static_cast<std::underlying_type<task_creation_options>::type>(rhs));}
49 [[maybe_unused]] inline task_creation_options operator +(task_creation_options lhs, task_creation_options rhs) {return static_cast<task_creation_options>(static_cast<std::underlying_type<task_creation_options>::type>(lhs) + static_cast<std::underlying_type<task_creation_options>::type>(rhs));}
50 [[maybe_unused]] inline task_creation_options operator -(task_creation_options lhs, task_creation_options rhs) {return static_cast<task_creation_options>(static_cast<std::underlying_type<task_creation_options>::type>(lhs) - static_cast<std::underlying_type<task_creation_options>::type>(rhs));}
51 [[maybe_unused]] inline task_creation_options operator ~(task_creation_options lhs) {return static_cast<task_creation_options>(~static_cast<std::underlying_type<task_creation_options>::type>(lhs));} \
53 }
54 }
55}
56
59 explicit operator auto() const noexcept {return xtd::enum_attribute::flags;}
60};
61
64};
Contains enum_ and enum_ut_ keywords.
task_creation_options
Specifies flags that control optional behavior for the creation and execution of tasks....
Definition task_creation_options.hpp:23
@ deny_child_attach
Specifies that any child task that attempts to execute as an attached child task (that is,...
Definition task_creation_options.hpp:33
@ run_continuations_asynchronously
Forces continuations added to the current task to be executed asynchronously.
Definition task_creation_options.hpp:37
@ none
Specifies that the default behavior should be used.
Definition task_creation_options.hpp:25
@ prefer_fairness
A hint to a xtd::threading::tasks::task_scheduler to schedule a task in as fair a manner as possible,...
Definition task_creation_options.hpp:27
@ hide_scheduler
Prevents the ambient scheduler from being seen as the current scheduler in the created task....
Definition task_creation_options.hpp:35
@ long_running
Specifies that a task will be a long-running, coarse-grained operation involving fewer,...
Definition task_creation_options.hpp:29
@ attached_to_parent
Specifies that a task is attached to a parent in the task hierarchy. By default, a child task (that i...
Definition task_creation_options.hpp:31
std::vector< std::pair< enum_t, xtd::string > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition enum_collection.hpp:24
@ flags
Enum flags attribute.
Definition enum_attribute.hpp:26
The xtd::threading::tasks namespace provides types that simplify the work of writing concurrent and a...
Definition itask.hpp:14
The xtd::threading namespace provides classes and interfaces that enable multithreaded programming....
Definition abandoned_mutex_exception.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Provides the registration struct for enumerations.
Definition enum_register.hpp:38
Provides the set attribute struct for enumerations.
Definition enum_set_attribute.hpp:36