mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-18 10:43:30 +08:00
[src/ipc.c]adjust rt_event_send() hook function position|调整rt_event_send()钩子函数位置
This commit is contained in:
parent
82b30a4bdc
commit
d44790c8f9
@ -1013,7 +1013,6 @@ rt_err_t rt_event_send(rt_event_t event, rt_uint32_t set)
|
||||
return -RT_ERROR;
|
||||
|
||||
need_schedule = RT_FALSE;
|
||||
RT_OBJECT_HOOK_CALL(rt_object_put_hook, (&(event->parent.parent)));
|
||||
|
||||
/* disable interrupt */
|
||||
level = rt_hw_interrupt_disable();
|
||||
@ -1021,6 +1020,8 @@ rt_err_t rt_event_send(rt_event_t event, rt_uint32_t set)
|
||||
/* set event */
|
||||
event->set |= set;
|
||||
|
||||
RT_OBJECT_HOOK_CALL(rt_object_put_hook, (&(event->parent.parent)));
|
||||
|
||||
if (!rt_list_isempty(&event->parent.suspend_thread))
|
||||
{
|
||||
/* search thread list to resume thread */
|
||||
|
Loading…
x
Reference in New Issue
Block a user