summaryrefslogtreecommitdiffstats
path: root/cpukit/score/inline/rtems/score/schedulerpriority.inl
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-24 12:03:31 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-07-26 11:55:44 +0200
commitf068384e3c8fd31d4791e22b4c91e29fa907ff3b (patch)
tree45e5ff2ff56ac3288b6ebbefbb306ce5fb8f2cee /cpukit/score/inline/rtems/score/schedulerpriority.inl
parentscore: Create schedulersimple impl header (diff)
downloadrtems-f068384e3c8fd31d4791e22b4c91e29fa907ff3b.tar.bz2
score: Create schedulerpriority impl header
Move implementation specific parts of schedulerpriority.h and schedulerpriority.inl into new header file schedulerpriorityimpl.h. The schedulerpriority.h contains now only the application visible API. Add missing includes. Remove superfluous includes. Move declaration of _Priority_Bit_map to prioritybitmap.inl since this variable is used only here. Remove second declaration of _Priority_Major_bit_map.
Diffstat (limited to '')
-rw-r--r--cpukit/score/include/rtems/score/schedulerpriorityimpl.h (renamed from cpukit/score/inline/rtems/score/schedulerpriority.inl)18
1 files changed, 11 insertions, 7 deletions
diff --git a/cpukit/score/inline/rtems/score/schedulerpriority.inl b/cpukit/score/include/rtems/score/schedulerpriorityimpl.h
index 393ee09062..03568ed141 100644
--- a/cpukit/score/inline/rtems/score/schedulerpriority.inl
+++ b/cpukit/score/include/rtems/score/schedulerpriorityimpl.h
@@ -17,17 +17,17 @@
* http://www.rtems.com/license/LICENSE.
*/
-#ifndef _RTEMS_SCORE_SCHEDULERPRIORITY_H
-# error "Never use <rtems/score/schedulerpriority.inl> directly; include <rtems/score/schedulerpriority.h> instead."
-#endif
-
-#ifndef _RTEMS_SCORE_SCHEDULERPRIORITY_INL
-#define _RTEMS_SCORE_SCHEDULERPRIORITY_INL
+#ifndef _RTEMS_SCORE_SCHEDULERPRIORITYIMPL_H
+#define _RTEMS_SCORE_SCHEDULERPRIORITYIMPL_H
+#include <rtems/score/schedulerpriority.h>
#include <rtems/score/chainimpl.h>
-#include <rtems/score/thread.h>
#include <rtems/score/wkspace.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* @addtogroup ScoreScheduler
*/
@@ -206,5 +206,9 @@ RTEMS_INLINE_ROUTINE int _Scheduler_priority_Priority_compare_body(
/** @} */
+#ifdef __cplusplus
+}
+#endif
+
#endif
/* end of include file */