| 327 | } |
| 328 | |
| 329 | void Acceptor::OnNewConnections(Socket* acception) { |
| 330 | int progress = Socket::PROGRESS_INIT; |
| 331 | do { |
| 332 | OnNewConnectionsUntilEAGAIN(acception); |
| 333 | if (acception->Failed()) { |
| 334 | return; |
| 335 | } |
| 336 | } while (acception->MoreReadEvents(&progress)); |
| 337 | } |
| 338 | |
| 339 | void Acceptor::BeforeRecycle(Socket* sock) { |
| 340 | BAIDU_SCOPED_LOCK(_map_mutex); |
nothing calls this directly
no test coverage detected