forked from Imagelibrary/rtems
Corrected remaining references to struct rtems_task_variable_t since
it is now typedef'ed.
This commit is contained in:
@@ -150,11 +150,15 @@ typedef struct {
|
|||||||
* Per task variable structure
|
* Per task variable structure
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct {
|
struct rtems_task_variable_tt;
|
||||||
struct rtems_task_variable_t *next;
|
|
||||||
int *ptr;
|
struct rtems_task_variable_tt {
|
||||||
int var;
|
struct rtems_task_variable_tt *next;
|
||||||
} rtems_task_variable_t;
|
int *ptr;
|
||||||
|
int var;
|
||||||
|
};
|
||||||
|
|
||||||
|
typedef struct rtems_task_variable_tt 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
|
||||||
|
|||||||
@@ -67,8 +67,8 @@ rtems_status_code rtems_task_variable_add(
|
|||||||
* Now allocate memory for this task variable.
|
* Now allocate memory for this task variable.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
new = (struct rtems_task_variable_t *)
|
new = (rtems_task_variable_t *)
|
||||||
_Workspace_Allocate(sizeof(struct rtems_task_variable_t));
|
_Workspace_Allocate(sizeof(rtems_task_variable_t));
|
||||||
if (new == NULL) {
|
if (new == NULL) {
|
||||||
_Thread_Enable_dispatch();
|
_Thread_Enable_dispatch();
|
||||||
return RTEMS_NO_MEMORY;
|
return RTEMS_NO_MEMORY;
|
||||||
|
|||||||
@@ -150,11 +150,15 @@ typedef struct {
|
|||||||
* Per task variable structure
|
* Per task variable structure
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct {
|
struct rtems_task_variable_tt;
|
||||||
struct rtems_task_variable_t *next;
|
|
||||||
int *ptr;
|
struct rtems_task_variable_tt {
|
||||||
int var;
|
struct rtems_task_variable_tt *next;
|
||||||
} rtems_task_variable_t;
|
int *ptr;
|
||||||
|
int var;
|
||||||
|
};
|
||||||
|
|
||||||
|
typedef struct rtems_task_variable_tt 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
|
||||||
|
|||||||
@@ -67,8 +67,8 @@ rtems_status_code rtems_task_variable_add(
|
|||||||
* Now allocate memory for this task variable.
|
* Now allocate memory for this task variable.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
new = (struct rtems_task_variable_t *)
|
new = (rtems_task_variable_t *)
|
||||||
_Workspace_Allocate(sizeof(struct rtems_task_variable_t));
|
_Workspace_Allocate(sizeof(rtems_task_variable_t));
|
||||||
if (new == NULL) {
|
if (new == NULL) {
|
||||||
_Thread_Enable_dispatch();
|
_Thread_Enable_dispatch();
|
||||||
return RTEMS_NO_MEMORY;
|
return RTEMS_NO_MEMORY;
|
||||||
|
|||||||
Reference in New Issue
Block a user