kernel: move thread definitions to thread.h

Move thread definitions to its own header to avoid redeclaration and
redefinition of types which is not allowed in some standards.

Fixes #29937

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2020-11-11 08:42:53 -05:00
commit fc1b5de4c3
4 changed files with 323 additions and 314 deletions

View file

@ -39,5 +39,6 @@
#include <sys/thread_stack.h>
#include <app_memory/mem_domain.h>
#include <sys/kobject.h>
#include <kernel/thread.h>
#endif /* ZEPHYR_INCLUDE_KERNEL_INCLUDES_H_ */