From f18e32173a0249ea4f645d6275697bb93b846a57 Mon Sep 17 00:00:00 2001 From: Jeff Tao Date: Thu, 16 Apr 2020 20:01:11 +0800 Subject: [PATCH] change the structure name --- src/util/inc/tsched.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/util/inc/tsched.h b/src/util/inc/tsched.h index c9ce6b388f..3e481cbc32 100644 --- a/src/util/inc/tsched.h +++ b/src/util/inc/tsched.h @@ -20,22 +20,17 @@ extern "C" { #endif -typedef struct _sched_msg { - void (*fp)(struct _sched_msg *); - +typedef struct SSchedMsg { + void (*fp)(struct SSchedMsg *); void (*tfp)(void *, void *); - void *msg; void *ahandle; void *thandle; } SSchedMsg; void *taosInitScheduler(int queueSize, int numOfThreads, const char *label); - void *taosInitSchedulerWithInfo(int queueSize, int numOfThreads, const char *label, void *tmrCtrl); - -int taosScheduleTask(void *qhandle, SSchedMsg *pMsg); - +int taosScheduleTask(void *qhandle, SSchedMsg *pMsg); void taosCleanUpScheduler(void *param); #ifdef __cplusplus -- GitLab