mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-11-09 08:37:58 +08:00
score: Create rbtree implementation header
Move implementation specific parts of rbtree.h and rbtree.inl into new header file rbtreeimpl.h. The rbtree.h contains now only the application visible API.
This commit is contained in:
1 parent
ac252bdce0
commit
93fb3cb059
13 files changed
+555
-562
No files matched your search
@@ -40,6 +40,7 @@ include_rtems_score_HEADERS += include/rtems/score/percpu.h
|
||||
include_rtems_score_HEADERS += include/rtems/score/priority.h
|
||||
include_rtems_score_HEADERS += include/rtems/score/prioritybitmap.h
|
||||
include_rtems_score_HEADERS += include/rtems/score/rbtree.h
|
||||
include_rtems_score_HEADERS += include/rtems/score/rbtreeimpl.h
|
||||
include_rtems_score_HEADERS += include/rtems/score/scheduler.h
|
||||
include_rtems_score_HEADERS += include/rtems/score/schedulercbs.h
|
||||
include_rtems_score_HEADERS += include/rtems/score/scheduleredf.h
|
||||
@@ -96,7 +97,6 @@ include_rtems_score_HEADERS += inline/rtems/score/heap.inl
|
||||
include_rtems_score_HEADERS += inline/rtems/score/object.inl
|
||||
include_rtems_score_HEADERS += inline/rtems/score/priority.inl
|
||||
include_rtems_score_HEADERS += inline/rtems/score/prioritybitmap.inl
|
||||
include_rtems_score_HEADERS += inline/rtems/score/rbtree.inl
|
||||
include_rtems_score_HEADERS += inline/rtems/score/scheduler.inl
|
||||
include_rtems_score_HEADERS += inline/rtems/score/schedulerpriority.inl
|
||||
include_rtems_score_HEADERS += inline/rtems/score/schedulersimple.inl
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -143,6 +143,10 @@ $(PROJECT_INCLUDE)/rtems/score/rbtree.h: include/rtems/score/rbtree.h $(PROJECT_
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/rbtree.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/rbtree.h
|
||||
|
||||
$(PROJECT_INCLUDE)/rtems/score/rbtreeimpl.h: include/rtems/score/rbtreeimpl.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/rbtreeimpl.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/rbtreeimpl.h
|
||||
|
||||
$(PROJECT_INCLUDE)/rtems/score/scheduler.h: include/rtems/score/scheduler.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/scheduler.h
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/scheduler.h
|
||||
@@ -315,10 +319,6 @@ $(PROJECT_INCLUDE)/rtems/score/prioritybitmap.inl: inline/rtems/score/prioritybi
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/prioritybitmap.inl
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/prioritybitmap.inl
|
||||
|
||||
$(PROJECT_INCLUDE)/rtems/score/rbtree.inl: inline/rtems/score/rbtree.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/rbtree.inl
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/rbtree.inl
|
||||
|
||||
$(PROJECT_INCLUDE)/rtems/score/scheduler.inl: inline/rtems/score/scheduler.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
|
||||
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/scheduler.inl
|
||||
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/scheduler.inl
|
||||
|
||||
@@ -10,9 +10,7 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <rtems/system.h>
|
||||
#include <rtems/score/address.h>
|
||||
#include <rtems/score/rbtree.h>
|
||||
#include <rtems/score/rbtreeimpl.h>
|
||||
#include <rtems/score/isr.h>
|
||||
|
||||
/** @brief Validate and fix-up tree properties after deleting a node
|
||||
|
||||
@@ -17,9 +17,7 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <rtems/system.h>
|
||||
#include <rtems/score/address.h>
|
||||
#include <rtems/score/rbtree.h>
|
||||
#include <rtems/score/rbtreeimpl.h>
|
||||
#include <rtems/score/isr.h>
|
||||
|
||||
RBTree_Node *_RBTree_Find(
|
||||
|
||||
@@ -17,9 +17,7 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <rtems/system.h>
|
||||
#include <rtems/score/address.h>
|
||||
#include <rtems/score/rbtree.h>
|
||||
#include <rtems/score/rbtreeimpl.h>
|
||||
#include <rtems/score/isr.h>
|
||||
|
||||
RBTree_Node *_RBTree_Get(
|
||||
|
||||
@@ -10,9 +10,7 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <rtems/system.h>
|
||||
#include <rtems/score/address.h>
|
||||
#include <rtems/score/rbtree.h>
|
||||
#include <rtems/score/rbtreeimpl.h>
|
||||
#include <rtems/score/isr.h>
|
||||
|
||||
/** @brief Validate and fix-up tree properties for a new insert/colored node
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <rtems/score/rbtree.h>
|
||||
#include <rtems/score/rbtreeimpl.h>
|
||||
|
||||
void _RBTree_Iterate_unprotected(
|
||||
const RBTree_Control *rbtree,
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <rtems/score/rbtree.h>
|
||||
#include <rtems/score/rbtreeimpl.h>
|
||||
#include <rtems/score/isr.h>
|
||||
|
||||
RBTree_Node *_RBTree_Next_unprotected(
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include <rtems.h>
|
||||
#include <rtems/rbheap.h>
|
||||
#include <rtems/malloc.h>
|
||||
#include <rtems/score/rbtreeimpl.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
static rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#define __RTEMS_VIOLATE_KERNEL_VISIBILITY__
|
||||
#include <tmacros.h>
|
||||
#include <rtems/rbtree.h>
|
||||
#include <rtems/score/rbtreeimpl.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
Reference in new issue
Block a user