distortos  v0.5.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 
16 
17 #include <cstdint>
18 
19 namespace distortos
20 {
21 
28 enum class ThreadState : uint8_t
29 {
31  created,
33  runnable,
35  terminated,
37  sleeping,
41  suspended,
46 
47 #if CONFIG_SIGNALS_ENABLE == 1
48 
51 
52 #endif // CONFIG_SIGNALS_ENABLE == 1
53 
55  detached,
56 };
57 
58 } // namespace distortos
59 
60 #endif // INCLUDE_DISTORTOS_THREADSTATE_HPP_
distortos configuration
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:28
thread is waiting for signal