add timer
This commit is contained in:
parent
7a47508c0e
commit
6cf9bb57f5
|
@ -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) {
|
||||||
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) {
|
||||||
rpcMsg.handle = pRpcMsg->handle;
|
rpcMsg.handle = pRpcMsg->handle;
|
||||||
rpcMsg.code = 0;
|
rpcMsg.code = 0;
|
||||||
rpcSendResponse(&rpcMsg);
|
rpcSendResponse(&rpcMsg);
|
||||||
*/
|
}
|
||||||
|
|
||||||
taosFreeQitem(pRpcMsg);
|
taosFreeQitem(pRpcMsg);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue