Merge branch 'dev' of git.kingsome.cn:server_common/f8 into dev

This commit is contained in:
aozhiwei 2023-11-27 14:26:56 +08:00
commit 6d385ed941
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);
list_del_init(&hdr->entry);
user_app_->DispatchSocketMsg(hdr);
--msgnode_size_;
MsgHdr::Destroy(hdr);
}
}
@ -281,10 +282,4 @@ namespace f8
NotifyLoopCond();
}
void App::FreeSocketMsg(MsgHdr* hdr)
{
--msgnode_size_;
free(hdr);
}
}

View File

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