提交 6cf9bb57 编写于 作者: M Minghao Li

add timer

上级 7a47508c
...@@ -28,7 +28,7 @@ static void syncTick(void *param, void *tmrId) { ...@@ -28,7 +28,7 @@ static void syncTick(void *param, void *tmrId) {
rpcMsg.pCont = rpcMallocCont(10); rpcMsg.pCont = rpcMallocCont(10);
snprintf(rpcMsg.pCont, 10, "TICK"); snprintf(rpcMsg.pCont, 10, "TICK");
rpcMsg.contLen = 10; rpcMsg.contLen = 10;
rpcMsg.handle = io; rpcMsg.handle = NULL;
rpcMsg.msgType = 2; rpcMsg.msgType = 2;
SRpcMsg *pTemp; SRpcMsg *pTemp;
...@@ -65,7 +65,7 @@ void *syncConsumer(void *param) { ...@@ -65,7 +65,7 @@ void *syncConsumer(void *param) {
taosGetQitem(qall, (void **)&pRpcMsg); taosGetQitem(qall, (void **)&pRpcMsg);
rpcFreeCont(pRpcMsg->pCont); rpcFreeCont(pRpcMsg->pCont);
/* if (pRpcMsg->handle != NULL) {
int msgSize = 128; int msgSize = 128;
memset(&rpcMsg, 0, sizeof(rpcMsg)); memset(&rpcMsg, 0, sizeof(rpcMsg));
rpcMsg.pCont = rpcMallocCont(msgSize); rpcMsg.pCont = rpcMallocCont(msgSize);
...@@ -73,7 +73,7 @@ void *syncConsumer(void *param) { ...@@ -73,7 +73,7 @@ void *syncConsumer(void *param) {
rpcMsg.handle = pRpcMsg->handle; rpcMsg.handle = pRpcMsg->handle;
rpcMsg.code = 0; rpcMsg.code = 0;
rpcSendResponse(&rpcMsg); rpcSendResponse(&rpcMsg);
*/ }
taosFreeQitem(pRpcMsg); taosFreeQitem(pRpcMsg);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册