1
0
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:
JulianHolzwarth 2019-07-03 14:59:57 +02:00
parent 1bcb4fcc5f
commit c1f58186cb

View File

@ -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);