unified: Add options field to static thread initialization structure
Adds the field, in preparation for making use of it in the future. Also re-orders the existing fields of the _static_thread_data structure so they appear in the same order as the arguments to k_thread_spawn(). This makes it easier to ensure all of the arguments and fields are handled in a consistent manner. Change-Id: I401687ecfdacd52c05ab95af7f12d8dc658ed419 Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
This commit is contained in:
parent
0eae13d6de
commit
7c5bffa669
1 changed files with 8 additions and 7 deletions
|
@ -148,19 +148,20 @@ extern void k_thread_abort(k_tid_t thread);
|
|||
#endif
|
||||
|
||||
struct _static_thread_data {
|
||||
uint32_t init_groups;
|
||||
int init_prio;
|
||||
void (*init_entry)(void *, void *, void *);
|
||||
void *init_p1;
|
||||
void *init_p2;
|
||||
void *init_p3;
|
||||
void (*init_abort)(void);
|
||||
union {
|
||||
char *init_stack;
|
||||
struct k_thread *thread;
|
||||
};
|
||||
unsigned int init_stack_size;
|
||||
void (*init_entry)(void *, void *, void *);
|
||||
void *init_p1;
|
||||
void *init_p2;
|
||||
void *init_p3;
|
||||
int init_prio;
|
||||
uint32_t init_options;
|
||||
int32_t init_delay;
|
||||
void (*init_abort)(void);
|
||||
uint32_t init_groups;
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue