forked from Imagelibrary/rtems
Used typedef so all "struct rtems_task_variable_t" uses are now
just "rtems_task_variable_t".
This commit is contained in:
@@ -150,11 +150,11 @@ typedef struct {
|
|||||||
* Per task variable structure
|
* Per task variable structure
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct rtems_task_variable_t {
|
typedef struct {
|
||||||
struct rtems_task_variable_t *next;
|
struct rtems_task_variable_t *next;
|
||||||
int *ptr;
|
int *ptr;
|
||||||
int var;
|
int var;
|
||||||
};
|
} rtems_task_variable_t;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This is the API specific information required by each thread for
|
* This is the API specific information required by each thread for
|
||||||
@@ -167,7 +167,7 @@ typedef struct {
|
|||||||
rtems_event_set pending_events;
|
rtems_event_set pending_events;
|
||||||
rtems_event_set event_condition;
|
rtems_event_set event_condition;
|
||||||
ASR_Information Signal;
|
ASR_Information Signal;
|
||||||
struct rtems_task_variable_t *task_variables;
|
rtems_task_variable_t *task_variables;
|
||||||
} RTEMS_API_Control;
|
} RTEMS_API_Control;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ User_extensions_routine _RTEMS_tasks_Delete_extension(
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
RTEMS_API_Control *api;
|
RTEMS_API_Control *api;
|
||||||
struct rtems_task_variable_t *tvp, *next;
|
rtems_task_variable_t *tvp, *next;
|
||||||
|
|
||||||
api = executing->API_Extensions[ THREAD_API_RTEMS ];
|
api = executing->API_Extensions[ THREAD_API_RTEMS ];
|
||||||
|
|
||||||
@@ -133,7 +133,7 @@ void _RTEMS_tasks_Switch_extension(
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
RTEMS_API_Control *api;
|
RTEMS_API_Control *api;
|
||||||
struct rtems_task_variable_t *tvp;
|
rtems_task_variable_t *tvp;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Per Task Variables
|
* Per Task Variables
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ rtems_status_code rtems_task_variable_add(
|
|||||||
Thread_Control *the_thread;
|
Thread_Control *the_thread;
|
||||||
Objects_Locations location;
|
Objects_Locations location;
|
||||||
RTEMS_API_Control *api;
|
RTEMS_API_Control *api;
|
||||||
struct rtems_task_variable_t *tvp, *new;
|
rtems_task_variable_t *tvp, *new;
|
||||||
|
|
||||||
the_thread = _Thread_Get (tid, &location);
|
the_thread = _Thread_Get (tid, &location);
|
||||||
switch (location) {
|
switch (location) {
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ rtems_status_code rtems_task_variable_delete(
|
|||||||
Thread_Control *the_thread;
|
Thread_Control *the_thread;
|
||||||
Objects_Locations location;
|
Objects_Locations location;
|
||||||
RTEMS_API_Control *api;
|
RTEMS_API_Control *api;
|
||||||
struct rtems_task_variable_t *tvp, *prev;
|
rtems_task_variable_t *tvp, *prev;
|
||||||
|
|
||||||
prev = NULL;
|
prev = NULL;
|
||||||
|
|
||||||
|
|||||||
@@ -150,11 +150,11 @@ typedef struct {
|
|||||||
* Per task variable structure
|
* Per task variable structure
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct rtems_task_variable_t {
|
typedef struct {
|
||||||
struct rtems_task_variable_t *next;
|
struct rtems_task_variable_t *next;
|
||||||
int *ptr;
|
int *ptr;
|
||||||
int var;
|
int var;
|
||||||
};
|
} rtems_task_variable_t;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This is the API specific information required by each thread for
|
* This is the API specific information required by each thread for
|
||||||
@@ -167,7 +167,7 @@ typedef struct {
|
|||||||
rtems_event_set pending_events;
|
rtems_event_set pending_events;
|
||||||
rtems_event_set event_condition;
|
rtems_event_set event_condition;
|
||||||
ASR_Information Signal;
|
ASR_Information Signal;
|
||||||
struct rtems_task_variable_t *task_variables;
|
rtems_task_variable_t *task_variables;
|
||||||
} RTEMS_API_Control;
|
} RTEMS_API_Control;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ User_extensions_routine _RTEMS_tasks_Delete_extension(
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
RTEMS_API_Control *api;
|
RTEMS_API_Control *api;
|
||||||
struct rtems_task_variable_t *tvp, *next;
|
rtems_task_variable_t *tvp, *next;
|
||||||
|
|
||||||
api = executing->API_Extensions[ THREAD_API_RTEMS ];
|
api = executing->API_Extensions[ THREAD_API_RTEMS ];
|
||||||
|
|
||||||
@@ -133,7 +133,7 @@ void _RTEMS_tasks_Switch_extension(
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
RTEMS_API_Control *api;
|
RTEMS_API_Control *api;
|
||||||
struct rtems_task_variable_t *tvp;
|
rtems_task_variable_t *tvp;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Per Task Variables
|
* Per Task Variables
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ rtems_status_code rtems_task_variable_add(
|
|||||||
Thread_Control *the_thread;
|
Thread_Control *the_thread;
|
||||||
Objects_Locations location;
|
Objects_Locations location;
|
||||||
RTEMS_API_Control *api;
|
RTEMS_API_Control *api;
|
||||||
struct rtems_task_variable_t *tvp, *new;
|
rtems_task_variable_t *tvp, *new;
|
||||||
|
|
||||||
the_thread = _Thread_Get (tid, &location);
|
the_thread = _Thread_Get (tid, &location);
|
||||||
switch (location) {
|
switch (location) {
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ rtems_status_code rtems_task_variable_delete(
|
|||||||
Thread_Control *the_thread;
|
Thread_Control *the_thread;
|
||||||
Objects_Locations location;
|
Objects_Locations location;
|
||||||
RTEMS_API_Control *api;
|
RTEMS_API_Control *api;
|
||||||
struct rtems_task_variable_t *tvp, *prev;
|
rtems_task_variable_t *tvp, *prev;
|
||||||
|
|
||||||
prev = NULL;
|
prev = NULL;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user