unified: Relocate internal thread group APIs
Moves the following internal thread group APIs from the public kernel.h header file to the more private thread.c source file as they do not need to be public APIs. _k_task_list_start[]; _k_task_list_end[]; _FOREACH_STATIC_THREAD() is_in_any_group() Change-Id: I0b731fb0c20a5574cb1b3c1397803af82918d69d Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
This commit is contained in:
parent
9d67337c2d
commit
0ca7cea8f3
2 changed files with 14 additions and 12 deletions
|
@ -1287,19 +1287,7 @@ extern void k_free(void *p);
|
|||
* private APIs that are utilized by one or more public APIs
|
||||
*/
|
||||
|
||||
extern struct k_thread_static_init _k_task_list_start[];
|
||||
extern struct k_thread_static_init _k_task_list_end[];
|
||||
|
||||
#define _FOREACH_STATIC_THREAD(thread_init) \
|
||||
for (struct k_thread_static_init *thread_init = _k_task_list_start; \
|
||||
thread_init < _k_task_list_end; thread_init++)
|
||||
|
||||
extern int _is_thread_essential(void);
|
||||
static inline int is_in_any_group(struct k_thread_static_init *thread_init,
|
||||
uint32_t groups)
|
||||
{
|
||||
return !!(thread_init->init_groups & groups);
|
||||
}
|
||||
extern void _init_static_threads(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue