This commit is contained in:
azw 2023-11-27 03:09:43 +00:00
parent 6af8079f60
commit f66a76d8b6
2 changed files with 1 additions and 7 deletions

View File

@ -247,6 +247,7 @@ namespace f8
MsgHdr* hdr = list_first_entry(work_list, MsgHdr, entry); MsgHdr* hdr = list_first_entry(work_list, MsgHdr, entry);
list_del_init(&hdr->entry); list_del_init(&hdr->entry);
user_app_->DispatchSocketMsg(hdr); user_app_->DispatchSocketMsg(hdr);
--msgnode_size_;
MsgHdr::Destroy(hdr); MsgHdr::Destroy(hdr);
} }
} }
@ -281,10 +282,4 @@ namespace f8
NotifyLoopCond(); NotifyLoopCond();
} }
void App::FreeSocketMsg(MsgHdr* hdr)
{
--msgnode_size_;
free(hdr);
}
} }

View File

@ -57,7 +57,6 @@ namespace f8
const char *msgbody, const char *msgbody,
int bodylen, int bodylen,
int tag); int tag);
void FreeSocketMsg(MsgHdr* hdr);
char** GetArgv() { return argv_; } char** GetArgv() { return argv_; }
int GetArgc() { return argc_; } int GetArgc() { return argc_; }
long long GetMsgNodeSize() { return msgnode_size_; } long long GetMsgNodeSize() { return msgnode_size_; }