kernel: streamline initialization of _thread_base and timeouts
Move _thread_base initialization to _init_thread_base(), remove mention of "nano" in timeouts init and move timeout init to _init_thread_base(). Initialize all base fields via the _init_thread_base in semaphore groups code. Change-Id: I05b70b06261f4776bda6d67f358190428d4a954a Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
parent
50eb51a745
commit
069fd3624e
9 changed files with 32 additions and 43 deletions
|
@ -181,6 +181,10 @@ _set_thread_return_value_with_data(struct k_thread *thread,
|
|||
thread->base.swap_data = data;
|
||||
}
|
||||
|
||||
extern void _init_thread_base(struct _thread_base *thread_base,
|
||||
int priority, uint32_t initial_state,
|
||||
unsigned int options);
|
||||
|
||||
#endif /* _ASMLANGUAGE */
|
||||
|
||||
#endif /* _kernel_structs__h_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue