mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #12203 from JulianHolzwarth/pr/core/thread/hotfix_prio_type
core/thread.c: thread_create fix priority type
This commit is contained in:
commit
1887e9d3f4
@ -341,7 +341,7 @@ struct _thread {
|
||||
*/
|
||||
kernel_pid_t thread_create(char *stack,
|
||||
int stacksize,
|
||||
char priority,
|
||||
uint8_t priority,
|
||||
int flags,
|
||||
thread_task_func_t task_func,
|
||||
void *arg,
|
||||
|
@ -143,7 +143,7 @@ uintptr_t thread_measure_stack_free(char *stack)
|
||||
}
|
||||
#endif
|
||||
|
||||
kernel_pid_t thread_create(char *stack, int stacksize, char priority, int flags, thread_task_func_t function, void *arg, const char *name)
|
||||
kernel_pid_t thread_create(char *stack, int stacksize, uint8_t priority, int flags, thread_task_func_t function, void *arg, const char *name)
|
||||
{
|
||||
if (priority >= SCHED_PRIO_LEVELS) {
|
||||
return -EINVAL;
|
||||
|
Loading…
Reference in New Issue
Block a user