distortos  v0.4.0
object-oriented C++ RTOS for microcontrollers
ThreadState.hpp
Go to the documentation of this file.
1 
12 #ifndef INCLUDE_DISTORTOS_THREADSTATE_HPP_
13 #define INCLUDE_DISTORTOS_THREADSTATE_HPP_
14 
15 #include <cstdint>
16 
17 namespace distortos
18 {
19 
26 enum class ThreadState : uint8_t
27 {
29  created,
31  runnable,
33  terminated,
35  sleeping,
39  suspended,
47  detached,
48 };
49 
50 } // namespace distortos
51 
52 #endif // INCLUDE_DISTORTOS_THREADSTATE_HPP_
Top-level namespace of distortos project.
thread is blocked on Mutex
state in which thread is created, before being added to Scheduler
thread is blocked on ConditionVariable
internal thread object was detached
thread is blocked on Semaphore
ThreadState
state of the thread
Definition: ThreadState.hpp:26
thread is waiting for signal