mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-08-10 08:25:23 +00:00
mt: Fix missing call to mtarch_pstop()
If mt_yield() needs it, then mt_exit() too. A thread could indeed be preempted while calling mt_exit(). Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
This commit is contained in:
@@ -100,6 +100,7 @@ mt_yield(void)
|
||||
void
|
||||
mt_exit(void)
|
||||
{
|
||||
mtarch_pstop();
|
||||
current->state = MT_STATE_EXITED;
|
||||
current = NULL;
|
||||
mtarch_yield();
|
||||
|
Reference in New Issue
Block a user