Skip to content

Commit

Permalink
fix code smell.
Browse files Browse the repository at this point in the history
  • Loading branch information
freeeyes committed Oct 17, 2023
1 parent 63f36f0 commit fa7894b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion PSS_ASIO/Message/ModuleLogic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,8 @@ int CWorkThreadLogic::assignation_thread_module_logic(const uint32 connect_id, c
//测试连接自检
uint32 check_timeout = 120;
run_check_task(check_timeout);

send_io_buffer();
#endif
return 0;
}
Expand Down Expand Up @@ -499,7 +501,7 @@ void CWorkThreadLogic::do_work_thread_module_logic(shared_ptr<ISession> session,
}
}

void CWorkThreadLogic::send_io_buffer(uint32 connect_id, std::shared_ptr<ISession> session, std::shared_ptr<CMessage_Packet> format_packet)
void CWorkThreadLogic::send_io_buffer(uint32 connect_id, std::shared_ptr<ISession> session, std::shared_ptr<CMessage_Packet> format_packet) const
{
if (io_send_time_check_ > 0)
{
Expand Down
2 changes: 1 addition & 1 deletion PSS_ASIO/Message/ModuleLogic.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ class CWorkThreadLogic
int do_io_bridge_data(uint32 connect_id, uint32 io_bridge_connect_id_, CSessionBuffer& session_recv_buffer, std::size_t length, shared_ptr<ISession> session);

private:
void send_io_buffer(uint32 connect_id, std::shared_ptr<ISession> session, std::shared_ptr<CMessage_Packet> format_packet);
void send_io_buffer(uint32 connect_id, std::shared_ptr<ISession> session, std::shared_ptr<CMessage_Packet> format_packet) const;
void do_work_thread_timeout(uint16 work_thread_id, uint16 last_dispose_command_id, int work_thread_timeout);

using hashmappluginworkthread = unordered_map<uint32, shared_ptr<CModuleLogic>>;
Expand Down

0 comments on commit fa7894b

Please sign in to comment.