#include <kernel/task.h>
Go to the source code of this file.
|
int | kthread_create (task_func_t task_func, uint8_t priority, int stack_size) |
| Create new kernel thread. More...
|
|
◆ kthread_create()
int kthread_create |
( |
task_func_t |
task_func, |
|
|
uint8_t |
priority, |
|
|
int |
stack_size |
|
) |
| |
Create new kernel thread.
- Parameters
-
task_func | Task function to run. |
priority | Priority of the kernel thread. |
stack_size | Stack size of the kernel thread. |
- Return values
-
int | The function returns positive task PID on success; otherwise it returns a negative error number. |