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

Method Printer

examples/asio/tutorial/timer5/timer.cc:10–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

runAfterMethod · 0.80

Tested by

no test coverage detected