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:
parent
04706ae8d3
commit
ebe1bf1889
@ -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 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user