From 71b2229427ceddf02d77b0cd8ac9cba0862bf752 Mon Sep 17 00:00:00 2001 From: YuQing <384681@qq.com> Date: Sat, 15 Nov 2025 11:12:35 +0800 Subject: [PATCH] fast_task_queue.h: remove field finish_callback --- HISTORY | 3 +++ src/fast_task_queue.h | 2 -- src/ioevent_loop.c | 5 +---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/HISTORY b/HISTORY index d86870c..396ce68 100644 --- a/HISTORY +++ b/HISTORY @@ -1,4 +1,7 @@ +Version 1.83 2025-11-15 + * fast_task_queue.h: remove field finish_callback + Version 1.82 2025-11-04 * set use_io_uring explicitly diff --git a/src/fast_task_queue.h b/src/fast_task_queue.h index d211304..df85a4f 100644 --- a/src/fast_task_queue.h +++ b/src/fast_task_queue.h @@ -37,7 +37,6 @@ struct nio_thread_data; struct fast_task_info; typedef int (*ThreadLoopCallback) (struct nio_thread_data *pThreadData); -typedef int (*TaskFinishCallback) (struct fast_task_info *task); typedef void (*TaskCleanUpCallback) (struct fast_task_info *task); typedef int (*TaskInitCallback)(struct fast_task_info *task, void *arg); typedef void (*TaskReleaseCallback)(struct fast_task_info *task); @@ -149,7 +148,6 @@ struct fast_task_info struct fc_list_head dlink; //for polling queue } polling; //for RDMA busy polling TaskContinueCallback continue_callback; //for continue stage - TaskFinishCallback finish_callback; struct nio_thread_data *thread_data; struct sf_network_handler *handler; //network handler for libserverframe nio struct fast_task_info *next; //for free queue and deleted list diff --git a/src/ioevent_loop.c b/src/ioevent_loop.c index f7b1c0b..7590c8f 100644 --- a/src/ioevent_loop.c +++ b/src/ioevent_loop.c @@ -145,10 +145,7 @@ static void deal_timeouts(FastTimerEntry *head) /* must set NULL because NOT in time wheel */ current->prev = current->next = NULL; pEventEntry = (IOEventEntry *)current; - if (pEventEntry != NULL) - { - pEventEntry->callback(pEventEntry->fd, IOEVENT_TIMEOUT, current); - } + pEventEntry->callback(pEventEntry->fd, IOEVENT_TIMEOUT, current); } }