chenshuo / muduo

Event-driven network library for multi-threaded Linux server in C++11
https://github.com/chenshuo/muduo
Other
14.7k stars 5.15k forks source link

sortlist.cc #557

Closed kingsunc closed 2 years ago

kingsunc commented 2 years ago

sortlist.cc 实现了超时断连功能。 但内部的WeakConnectionList connectionList_; 使用了push_back、erase、splice操作均是非线程安全的。

chenshuo commented 2 years ago

sortedlist.cc 本来就是一个单线程程序。