1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 14:33:52 +01:00

core/thread.c:thread_zombify always enables interrupts before yield

This commit is contained in:
JulianHolzwarth 2020-02-05 18:00:13 +01:00
parent 04706ae8d3
commit ebe1bf1889

View File

@ -61,9 +61,9 @@ void thread_zombify(void)
return;
}
unsigned state = irq_disable();
irq_disable();
sched_set_status((thread_t *)sched_active_thread, STATUS_ZOMBIE);
irq_restore(state);
irq_enable();
thread_yield_higher();
/* this line should never be reached */