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

Function print

examples/asio/tutorial/timer3/timer.cc:5–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3#include <iostream>
4
5void print(muduo::net::EventLoop* loop, int* count)
6{
7 if (*count < 5)
8 {
9 std::cout << *count << "\n";
10 ++(*count);
11
12 loop->runAfter(1, std::bind(print, loop, count));
13 }
14 else
15 {
16 loop->quit();
17 }
18}
19
20int main()
21{

Callers

nothing calls this directly

Calls 2

runAfterMethod · 0.80
quitMethod · 0.45

Tested by

no test coverage detected