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

Method Printer

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

Source from the content-addressed store, hash-verified

12{
13 public:
14 Printer(muduo::net::EventLoop* loop1, muduo::net::EventLoop* loop2)
15 : loop1_(loop1),
16 loop2_(loop2),
17 count_(0)
18 {
19 loop1_->runAfter(1, std::bind(&Printer::print1, this));
20 loop2_->runAfter(1, std::bind(&Printer::print2, this));
21 }
22
23 ~Printer()
24 {

Callers

nothing calls this directly

Calls 1

runAfterMethod · 0.80

Tested by

no test coverage detected