Skip to content

Conversation

@woodgood
Copy link

No description provided.

chenshuo added 30 commits April 3, 2011 10:19
Replace htonl with sockets::hostToNetwork32.
chenshuo and others added 30 commits December 1, 2012 14:03
…) from non-IO thread, data might be incomplete.
The current impl. has race condition of TcpClient destructs before
TcpConnection calling TcpClient::removeConnection(), and TcpClient's loop_
member becomes wild pointer and assertInLoopThread fails because threadId_
is garbage value. Client::onDisconnect() makes the main event loop quits,
therefore destructs the TcpClient while TcpConnection connection callback
is half-way done in IO thread. The solution is to defer quit of main loop,
so TcpClient::removeConnection() finishes first.
这里并没直接用到Singleton,是否可以去掉呢?
Remove unused header EventLoop.cc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants