xtd 0.2.0
Loading...
Searching...
No Matches
thread_state.hpp
Go to the documentation of this file.
1
4#pragma once
7#include "../enum_object.hpp"
11
13namespace xtd {
15 namespace threading {
29 enum class thread_state {
31 running = 0x0000,
37 background = 0x0004,
39 unstarted = 0x0008,
41 stopped = 0x0010,
45 suspended = 0x0040,
49 aborted = 0x0100
50 };
51 }
52}
53
55flags_attribute_(xtd::threading, thread_state);
56
58 explicit operator auto() const noexcept {
60 }
61};
Contains xtd::enum_attribute enum class.
Contains xtd::enum_collection.
Contains xtd::enum_object struct.
Contains xtd::enum_register.
Contains xtd::enum_set_attribute strcut.
Contains flags_attribute_ keyword.
#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:29
@ unstarted
The System::Threading::Thread.Start() method has not been invoked on the thread_state.
Definition thread_state.hpp:39
@ wait_sleep_join
The thread_state is blocked. This could be the result of calling System::Threading::Thread....
Definition thread_state.hpp:43
@ suspended
The thread_state has been suspended.
Definition thread_state.hpp:45
@ running
The thread_state has been started, it is not blocked, and there is no pending System::Threading::Thre...
Definition thread_state.hpp:31
@ stop_requested
The thread_state is being requested to stop. This is for internal use only.
Definition thread_state.hpp:33
@ background
The thread_state is being executed as a background thread_state, as opposed to a foreground thread_st...
Definition thread_state.hpp:37
@ aborted
The thread_state state includes System::Threading::ThreadState.abort_requested and the thread_state i...
Definition thread_state.hpp:49
@ stopped
The thread_state has stopped.
Definition thread_state.hpp:41
@ abort_requested
The System::Threading::Thread.Abort(System::object) method has been invoked on the thread_state,...
Definition thread_state.hpp:47
@ suspend_requested
The thread_state is being requested to suspend.
Definition thread_state.hpp:35
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
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