Merge pull request #12296 from miri64/lwip/fix/sched_switch
lwip: sys_arch: replace sched_switch() with thread_yield_higher()
This commit is contained in:
commit
2e428e2786
@ -218,7 +218,7 @@ sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread, void *arg,
|
||||
abort();
|
||||
}
|
||||
mutex_lock(¶ms.sync);
|
||||
sched_switch((char)prio);
|
||||
thread_yield_higher();
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user