evpp icon indicating copy to clipboard operation
evpp copied to clipboard

我发现TCPServer 会有一个map保存所有 tcp_conn, 为什么不用 weak_ptr 呢?

Open redfox1999 opened this issue 6 years ago • 1 comments

我发现TCPServer 会有一个map保存所有 tcp_conn, 为什么不用 weak_ptr 呢

redfox1999 avatar Nov 07 '18 03:11 redfox1999

tcp_conn是TCPServer自己创建和自己移除的,怎么会用 weak_ptr 呢?用 weak_ptr 的地方,是要 暂存tcp_conn的其它类里面。

qlaiaqu avatar Aug 02 '19 07:08 qlaiaqu