Merge pull request #1628 from taosdata/enhance/structure

change the structure name
This commit is contained in:
slguan 2020-04-17 00:15:34 +08:00 committed by GitHub
commit a36b4db37a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 8 deletions

View File

@ -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