53 explicit operator auto()
const noexcept {
54 return xtd::enum_collection<xtd::threading::thread_state> {{
xtd::threading::thread_state::running,
"running"}, {
xtd::threading::thread_state::stop_requested,
"stop_requested"}, {
xtd::threading::thread_state::suspend_requested,
"suspend_requested"}, {
xtd::threading::thread_state::background,
"background"}, {
xtd::threading::thread_state::unstarted,
"unstarted"}, {
xtd::threading::thread_state::stopped,
"stopped"}, {
xtd::threading::thread_state::wait_sleep_join,
"wait_sleep_join"}, {
xtd::threading::thread_state::suspended,
"suspended"}, {
xtd::threading::thread_state::abort_requested,
"abort_requested"}, {
xtd::threading::thread_state::aborted,
"aborted"}};}
#define flags_attribute_(namespace_name, enum_type)
Provides the set attribute struct for enumerations helper.
Definition flags_attribute.hpp:34
thread_state
Specifies the execution states of a System::Threading::Thread.
Definition thread_state.hpp:24
@ unstarted
The System::Threading::Thread.Start() method has not been invoked on the thread_state.
@ wait_sleep_join
The thread_state is blocked. This could be the result of calling System::Threading::Thread....
@ suspended
The thread_state has been suspended.
@ running
The thread_state has been started, it is not blocked, and there is no pending System::Threading::Thre...
@ stop_requested
The thread_state is being requested to stop. This is for internal use only.
@ background
The thread_state is being executed as a background thread_state, as opposed to a foreground thread_st...
@ aborted
The thread_state state includes System::Threading::ThreadState.abort_requested and the thread_state i...
@ stopped
The thread_state has stopped.
@ abort_requested
The System::Threading::Thread.Abort(System::object) method has been invoked on the thread_state,...
@ suspend_requested
The thread_state is being requested to suspend.
std::vector< xtd::collections::generic::key_value_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:22
The xtd::threading namespace provides classes and interfaces that enable multithreaded programming....
Definition abandoned_mutex_exception.hpp:11
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Provides the registration struct for enumerations.
Definition enum_register.hpp:38