MCPcopy Create free account
hub / github.com/chenshuo/muduo / Printer

Method Printer

examples/asio/tutorial/timer4/timer.cc:8–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6{
7 public:
8 Printer(muduo::net::EventLoop* loop)
9 : loop_(loop),
10 count_(0)
11 {
12 // Note: loop.runEvery() is better for this use case.
13 loop_->runAfter(1, std::bind(&Printer::print, this));
14 }
15
16 ~Printer()
17 {

Callers

nothing calls this directly

Calls 1

runAfterMethod · 0.80

Tested by

no test coverage detected