distortos  v0.7.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 DISTORTOS_THREAD_DETACH_ENABLE
27 
29 {
30 public:
31 
32  using ThreadCommon::ThreadCommon;
33 
46  int detach() override;
47 };
48 
49 #else // !def DISTORTOS_THREAD_DETACH_ENABLE
50 
52 
53 #endif // !def DISTORTOS_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.
Definition: buttons.hpp:33
ThreadCommon class header.
ThreadCommon class implements common functionality of threads.
Definition: ThreadCommon.hpp:27