Closed yijuwang closed 2 years ago
看TcpConnection.cpp里,用runinloop时绑定函数用的this,用queueinloop用的shared_from_this,可runinloop判断如果不是同一线程也会调queueinloop,想问下runinloop为什么不用shared_from_this,按理TcpConnection用的shared_ptr应该用shared_from_this啊
看TcpConnection.cpp里,用runinloop时绑定函数用的this,用queueinloop用的shared_from_this,可runinloop判断如果不是同一线程也会调queueinloop,想问下runinloop为什么不用shared_from_this,按理TcpConnection用的shared_ptr应该用shared_from_this啊