distortos  v0.5.0
object-oriented C++ RTOS for microcontrollers
getScheduler.hpp
Go to the documentation of this file.
1 
12 #ifndef INCLUDE_DISTORTOS_INTERNAL_SCHEDULER_GETSCHEDULER_HPP_
13 #define INCLUDE_DISTORTOS_INTERNAL_SCHEDULER_GETSCHEDULER_HPP_
14 
15 namespace distortos
16 {
17 
18 namespace internal
19 {
20 
21 class Scheduler;
22 
27 constexpr Scheduler& getScheduler()
28 {
30  return schedulerInstance;
31 }
32 
33 } // namespace internal
34 
35 } // namespace distortos
36 
37 #endif // INCLUDE_DISTORTOS_INTERNAL_SCHEDULER_GETSCHEDULER_HPP_
Top-level namespace of distortos project.
constexpr Scheduler & getScheduler()
Definition: getScheduler.hpp:27
Scheduler schedulerInstance
main instance of system's Scheduler
Definition: getScheduler.cpp:32
Scheduler class is a system's scheduler.
Definition: Scheduler.hpp:28