| Index: net/quic/core/congestion_control/simulation/actor.cc
|
| diff --git a/net/quic/core/congestion_control/simulation/actor.cc b/net/quic/core/congestion_control/simulation/actor.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7058a1fe9971d841a44be2152643790abf700664
|
| --- /dev/null
|
| +++ b/net/quic/core/congestion_control/simulation/actor.cc
|
| @@ -0,0 +1,25 @@
|
| +#include "net/quic/core/congestion_control/simulation/actor.h"
|
| +#include "net/quic/core/congestion_control/simulation/simulator.h"
|
| +
|
| +namespace net {
|
| +namespace simulation {
|
| +
|
| +Actor::Actor(Simulator* simulator, std::string name)
|
| + : simulator_(simulator),
|
| + clock_(simulator->GetClock()),
|
| + name_(std::move(name)) {
|
| + simulator->AddActor(this);
|
| +}
|
| +
|
| +Actor::~Actor() {}
|
| +
|
| +void Actor::Schedule(QuicTime next_tick) {
|
| + simulator_->Schedule(this, next_tick);
|
| +}
|
| +
|
| +void Actor::Unschedule() {
|
| + simulator_->Unschedule(this);
|
| +}
|
| +
|
| +} // namespace simulation
|
| +} // namespace net
|
|
|