diff options
Diffstat (limited to 'include/distortos/internal/scheduler/getScheduler.hpp')
-rw-r--r-- | include/distortos/internal/scheduler/getScheduler.hpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/include/distortos/internal/scheduler/getScheduler.hpp b/include/distortos/internal/scheduler/getScheduler.hpp new file mode 100644 index 0000000..f95d51c --- /dev/null +++ b/include/distortos/internal/scheduler/getScheduler.hpp @@ -0,0 +1,33 @@ +/** + * \file + * \brief getScheduler() declaration + * + * \author Copyright (C) 2014-2015 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info + * + * \par License + * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not + * distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef INCLUDE_DISTORTOS_INTERNAL_SCHEDULER_GETSCHEDULER_HPP_ +#define INCLUDE_DISTORTOS_INTERNAL_SCHEDULER_GETSCHEDULER_HPP_ + +namespace distortos +{ + +namespace internal +{ + +class Scheduler; + +/** + * \return reference to main instance of system's Scheduler + */ + +Scheduler& getScheduler(); + +} // namespace internal + +} // namespace distortos + +#endif // INCLUDE_DISTORTOS_INTERNAL_SCHEDULER_GETSCHEDULER_HPP_ |