mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
parent
8c189ce56e
commit
c0b0110de9
@ -146,9 +146,8 @@ static int _msg_send(msg_t *m, kernel_pid_t target_pid, bool block, unsigned sta
|
||||
*target_message = *m;
|
||||
sched_set_status(target, STATUS_PENDING);
|
||||
|
||||
uint16_t target_prio = target->priority;
|
||||
restoreIRQ(state);
|
||||
sched_switch(target_prio);
|
||||
thread_yield_higher();
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user