distortos  v0.4.0
object-oriented C++ RTOS for microcontrollers
UndetachableThread.hpp
Go to the documentation of this file.
1 
12 #ifndef INCLUDE_DISTORTOS_UNDETACHABLETHREAD_HPP_
13 #define INCLUDE_DISTORTOS_UNDETACHABLETHREAD_HPP_
14 
16 
17 namespace distortos
18 {
19 
26 #ifdef CONFIG_THREAD_DETACH_ENABLE
27 
29 {
30 public:
31 
33 
46  int detach() override;
47 };
48 
49 #else // !def CONFIG_THREAD_DETACH_ENABLE
50 
52 
53 #endif // !def CONFIG_THREAD_DETACH_ENABLE
54 
55 } // namespace distortos
56 
57 #endif // INCLUDE_DISTORTOS_UNDETACHABLETHREAD_HPP_
UndetachableThread class is a ThreadCommon that cannot be detached.
Definition: UndetachableThread.hpp:28
int detach() override
Detaches the thread.
Definition: UndetachableThread.cpp:29
Top-level namespace of distortos project.
ThreadCommon class implements common functionality of threads.
Definition: ThreadCommon.hpp:29
ThreadCommon class header.
ThreadCommon(internal::Stack &&stack, uint8_t priority, SchedulingPolicy schedulingPolicy, internal::ThreadGroupControlBlock *threadGroupControlBlock, SignalsReceiver *signalsReceiver)
ThreadCommon's constructor.
Definition: ThreadCommon.cpp:32