change the structure name

This commit is contained in:
Jeff Tao 2020-04-16 20:01:11 +08:00
parent f2b41206ce
commit f18e32173a
1 changed files with 3 additions and 8 deletions

View File

@ -20,22 +20,17 @@
extern "C" { extern "C" {
#endif #endif
typedef struct _sched_msg { typedef struct SSchedMsg {
void (*fp)(struct _sched_msg *); void (*fp)(struct SSchedMsg *);
void (*tfp)(void *, void *); void (*tfp)(void *, void *);
void *msg; void *msg;
void *ahandle; void *ahandle;
void *thandle; void *thandle;
} SSchedMsg; } SSchedMsg;
void *taosInitScheduler(int queueSize, int numOfThreads, const char *label); void *taosInitScheduler(int queueSize, int numOfThreads, const char *label);
void *taosInitSchedulerWithInfo(int queueSize, int numOfThreads, const char *label, void *tmrCtrl); 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); void taosCleanUpScheduler(void *param);
#ifdef __cplusplus #ifdef __cplusplus