lizhanhui commented on a change in pull request #60: feature: only one event 
loop for all TcpTransport.
URL: https://github.com/apache/rocketmq-client-cpp/pull/60#discussion_r246987638
 
 

 ##########
 File path: src/transport/TcpTransport.cpp
 ##########
 @@ -213,15 +143,15 @@ void TcpTransport::timeoutcb(evutil_socket_t fd, short 
what, void *arg) {
 
 void TcpTransport::eventcb(struct bufferevent *bev, short what, void *ctx) {
 
 Review comment:
   I am suggesting to use shared_prt/weak_ptr to fix this issue.
   If there is a way to coordinate libevent thread and business thread, you may 
raise a better neat solution.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to