Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

更新数据 #502

Open
wants to merge 381 commits into
base: gh-pages
Choose a base branch
from
Open

更新数据 #502

wants to merge 381 commits into from

Conversation

woodgood
Copy link

No description provided.

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.

None yet

6 participants