score: Rename to _Scheduler_Control

Rename struct Scheduler_Control to _Scheduler_Control to allow its use
in standard header files, e.g. <pthread.h>.

Update #3112.
This commit is contained in:
Sebastian Huber
2017-09-27 12:07:14 +02:00
parent 561698315f
commit e460cd00fd
7 changed files with 15 additions and 15 deletions

View File

@@ -27,7 +27,7 @@
#include <rtems/score/watchdog.h>
#include <rtems/score/interr.h>
struct Scheduler_Control;
struct _Scheduler_Control;
#ifdef __cplusplus
extern "C" {
@@ -90,7 +90,7 @@ typedef struct {
/**
* @brief The scheduler instance for this priority ceiling mutex.
*/
const struct Scheduler_Control *scheduler;
const struct _Scheduler_Control *scheduler;
#endif
} CORE_ceiling_mutex_Control;

View File

@@ -452,7 +452,7 @@ typedef struct Per_CPU_Control {
* This pointer is NULL in case this processor is currently not used by a
* scheduler instance.
*/
const struct Scheduler_Control *control;
const struct _Scheduler_Control *control;
/**
* @brief The scheduler context of the scheduler owning this processor.

View File

@@ -22,7 +22,7 @@
#include <rtems/score/cpu.h>
#include <rtems/score/rbtree.h>
struct Scheduler_Control;
struct _Scheduler_Control;
#ifdef __cplusplus
extern "C" {
@@ -140,7 +140,7 @@ struct Priority_Aggregation {
/**
* @brief The scheduler instance of this priority aggregation.
*/
const struct Scheduler_Control *scheduler;
const struct _Scheduler_Control *scheduler;
#endif
/**

View File

@@ -40,7 +40,7 @@ struct Per_CPU_Control;
*/
/**@{*/
typedef struct Scheduler_Control Scheduler_Control;
typedef struct _Scheduler_Control Scheduler_Control;
/**
* @brief The scheduler operations.
@@ -236,7 +236,7 @@ typedef struct Scheduler_Context {
/**
* @brief Scheduler control.
*/
struct Scheduler_Control {
struct _Scheduler_Control {
/**
* @brief Reference to a statically allocated scheduler context.
*/

View File

@@ -18,7 +18,7 @@
#include <rtems/score/schedulernode.h>
#include <rtems/score/priorityimpl.h>
struct Scheduler_Control;
struct _Scheduler_Control;
#ifdef __cplusplus
extern "C" {
@@ -31,10 +31,10 @@ extern "C" {
RTEMS_CONTAINER_OF( node, Scheduler_Node, Wait.Priority )
RTEMS_INLINE_ROUTINE void _Scheduler_Node_do_initialize(
const struct Scheduler_Control *scheduler,
Scheduler_Node *node,
Thread_Control *the_thread,
Priority_Control priority
const struct _Scheduler_Control *scheduler,
Scheduler_Node *node,
Thread_Control *the_thread,
Priority_Control priority
)
{
node->owner = the_thread;

View File

@@ -44,7 +44,7 @@ struct _pthread_cleanup_context;
struct Per_CPU_Control;
struct Scheduler_Control;
struct _Scheduler_Control;
struct User_extensions_Iterator;
@@ -261,7 +261,7 @@ typedef struct {
/**
* @brief The home scheduler control of this thread.
*/
const struct Scheduler_Control *home;
const struct _Scheduler_Control *home;
/**
* @brief The processor assigned by the current scheduler.

View File

@@ -165,7 +165,7 @@ void _Thread_Stack_Free(
bool _Thread_Initialize(
Thread_Information *information,
Thread_Control *the_thread,
const struct Scheduler_Control *scheduler,
const struct _Scheduler_Control *scheduler,
void *stack_area,
size_t stack_size,
bool is_fp,