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

Method print1

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

Source from the content-addressed store, hash-verified

22 }
23
24 void print1()
25 {
26 muduo::MutexLockGuard lock(mutex_);
27 if (count_ < 10)
28 {
29 std::cout << "Timer 1: " << count_ << "\n";
30 ++count_;
31
32 loop1_->runAfter(1, std::bind(&Printer::print1, this));
33 }
34 else
35 {
36 loop1_->quit();
37 }
38 }
39
40 void print2()
41 {

Callers

nothing calls this directly

Calls 2

runAfterMethod · 0.80
quitMethod · 0.45

Tested by

no test coverage detected