OLD | NEW |
(Empty) | |
| 1 #include "net/quic/core/congestion_control/simulation/actor.h" |
| 2 #include "net/quic/core/congestion_control/simulation/simulator.h" |
| 3 |
| 4 namespace net { |
| 5 namespace simulation { |
| 6 |
| 7 Actor::Actor(Simulator* simulator, std::string name) |
| 8 : simulator_(simulator), |
| 9 clock_(simulator->GetClock()), |
| 10 name_(std::move(name)) { |
| 11 simulator->AddActor(this); |
| 12 } |
| 13 |
| 14 Actor::~Actor() {} |
| 15 |
| 16 void Actor::Schedule(QuicTime next_tick) { |
| 17 simulator_->Schedule(this, next_tick); |
| 18 } |
| 19 |
| 20 void Actor::Unschedule() { |
| 21 simulator_->Unschedule(this); |
| 22 } |
| 23 |
| 24 } // namespace simulation |
| 25 } // namespace net |
OLD | NEW |