xtd 0.2.0
thread_state.h
Go to the documentation of this file.
1 #pragma once
5 #include "../enum.h"
6 
8 namespace xtd {
10  namespace threading {
22  enum class thread_state {
24  running = 0x0000,
26  stop_requested = 0x0001,
28  suspend_requested = 0x0002,
30  background = 0x0004,
32  unstarted = 0x0008,
34  stopped = 0x0010,
36  wait_sleep_join = 0x0020,
38  suspended = 0x0040,
40  abort_requested = 0x0080,
42  aborted = 0x0100
43  };
44  }
45 }
46 
49 
50 template<> struct xtd::enum_register<xtd::threading::thread_state> {
51  explicit operator auto() const noexcept {
53 };
The thread_state has stopped.
The thread_state is being requested to suspend.
The thread_state has been suspended.
The thread_state state includes System::Threading::ThreadState.abort_requested and the thread_state i...
thread_state
Specifies the execution states of a System::Threading::Thread.
Definition: thread_state.h:22
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
The System::Threading::Thread.Abort(System::object) method has been invoked on the thread_state...
std::vector< std::pair< enum_t, xtd::ustring > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition: enum_collection.h:19
The thread_state is blocked. This could be the result of calling System::Threading::Thread.Sleep(System::Int32) or System::Threading::Thread.Join(), of requesting a lock � for example, by calling System::Threading::Monitor.Enter(System::object) or System::Threading::Monitor.Wait(System::object,System::Int32,System::Boolean) or of waiting on a thread_state synchronization object such as System::Threading::ManualResetEvent.
The xtd::threading namespace provides classes and interfaces that enable multithreaded programming...
Definition: abandoned_mutex_exception.h:10
The System::Threading::Thread.Start() method has not been invoked on the thread_state.
The thread_state has been started, it is not blocked, and there is no pending System::Threading::Thre...
#define flags_attribute_(namespace_name, enum_type)
Provides the set attribute struct for enumerations helper.
Definition: flags_attribute.h:34
The thread_state is being executed as a background thread_state, as opposed to a foreground thread_st...
The thread_state is being requested to stop. This is for internal use only.
Provides the registration struct for enumerations.
Definition: enum_register.h:36