mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
xtimer/xtimer.c: sched_switch instead of yield
because of pr #11759: not all boards check for is_in_irq when thread_yield_higher
This commit is contained in:
parent
1bcb4fcc5f
commit
c1f58186cb
@ -261,7 +261,7 @@ static void _mutex_timeout(void *arg)
|
||||
}
|
||||
sched_set_status(mt->thread, STATUS_PENDING);
|
||||
irq_restore(irqstate);
|
||||
thread_yield_higher();
|
||||
sched_switch(mt->thread->priority);
|
||||
return;
|
||||
}
|
||||
irq_restore(irqstate);
|
||||
|
Loading…
Reference in New Issue
Block a user