OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/tools/flip_server/output_ordering.h" | 5 #include "net/tools/flip_server/output_ordering.h" |
6 | 6 |
7 #include "net/tools/flip_server/flip_config.h" | 7 #include "net/tools/flip_server/flip_config.h" |
8 #include "net/tools/flip_server/sm_connection.h" | 8 #include "net/tools/flip_server/sm_connection.h" |
9 | 9 |
10 | 10 |
11 namespace net { | 11 namespace net { |
12 | 12 |
| 13 OutputOrdering::PriorityMapPointer::PriorityMapPointer() |
| 14 : ring(NULL), |
| 15 alarm_enabled(false) { |
| 16 } |
| 17 |
13 // static | 18 // static |
14 double OutputOrdering::server_think_time_in_s_ = 0.0; | 19 double OutputOrdering::server_think_time_in_s_ = 0.0; |
15 | 20 |
16 OutputOrdering::OutputOrdering(SMConnectionInterface* connection) | 21 OutputOrdering::OutputOrdering(SMConnectionInterface* connection) |
17 : first_data_senders_threshold_(kInitialDataSendersThreshold), | 22 : first_data_senders_threshold_(kInitialDataSendersThreshold), |
18 connection_(connection) { | 23 connection_(connection) { |
19 if (connection) | 24 if (connection) |
20 epoll_server_ = connection->epoll_server(); | 25 epoll_server_ = connection->epoll_server(); |
21 } | 26 } |
22 | 27 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 174 |
170 PriorityMapPointer& pmp = sitpmi->second; | 175 PriorityMapPointer& pmp = sitpmi->second; |
171 if (pmp.alarm_enabled) | 176 if (pmp.alarm_enabled) |
172 epoll_server_->UnregisterAlarm(pmp.alarm_token); | 177 epoll_server_->UnregisterAlarm(pmp.alarm_token); |
173 else | 178 else |
174 pmp.ring->erase(pmp.it); | 179 pmp.ring->erase(pmp.it); |
175 stream_ids_.erase(sitpmi); | 180 stream_ids_.erase(sitpmi); |
176 } | 181 } |
177 | 182 |
178 } // namespace net | 183 } // namespace net |
179 | |
OLD | NEW |