distortos  v0.4.0
object-oriented C++ RTOS for microcontrollers
threadRunner.hpp
Go to the documentation of this file.
1 
12 #ifndef INCLUDE_DISTORTOS_INTERNAL_SCHEDULER_THREADRUNNER_HPP_
13 #define INCLUDE_DISTORTOS_INTERNAL_SCHEDULER_THREADRUNNER_HPP_
14 
15 namespace distortos
16 {
17 
18 class Thread;
19 
20 namespace internal
21 {
22 
41 void threadRunner(Thread& thread, void (& run)(Thread&), void (* preTerminationHook)(Thread&),
42  void (& terminationHook)(Thread&)) __attribute__ ((noreturn));
43 
44 } // namespace internal
45 
46 } // namespace distortos
47 
48 #endif // INCLUDE_DISTORTOS_INTERNAL_SCHEDULER_THREADRUNNER_HPP_
Top-level namespace of distortos project.
void thread(uint32_t value, bool &sharedResult)
Test thread.
Definition: ARMv7-M-FpuThreadTestCase.cpp:68
void threadRunner(Thread &thread, void(&run)(Thread &), void(*preTerminationHook)(Thread &), void(&terminationHook)(Thread &))
Thread runner function - entry point of threads.
Definition: threadRunner.cpp:30