mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-22 17:29:07 +08:00
[ipc/workqueue.c] 删除无用的判断
This commit is contained in:
parent
8a1e6b2df5
commit
2a4e9e902d
@ -144,11 +144,7 @@ static rt_err_t _workqueue_submit_work(struct rt_workqueue *queue,
|
|||||||
list_tmp = &(queue->delayed_list);
|
list_tmp = &(queue->delayed_list);
|
||||||
rt_list_for_each_entry(work_tmp, &(queue->delayed_list), list)
|
rt_list_for_each_entry(work_tmp, &(queue->delayed_list), list)
|
||||||
{
|
{
|
||||||
if ((work_tmp->timeout_tick - work->timeout_tick) == 0)
|
if ((work_tmp->timeout_tick - work->timeout_tick) < RT_TICK_MAX / 2)
|
||||||
{
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
else if ((work_tmp->timeout_tick - work->timeout_tick) < RT_TICK_MAX / 2)
|
|
||||||
{
|
{
|
||||||
list_tmp = &(work_tmp->list);
|
list_tmp = &(work_tmp->list);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user