Commit 6df4a4a7bd5525f1cf4deeed301864322f6ca6ee
1 parent
e694fce0
Updated timer example
Showing
1 changed file
with
0 additions
and
1 deletions
04-timer5.cpp
@@ -71,7 +71,6 @@ int main() | @@ -71,7 +71,6 @@ int main() | ||
71 | { | 71 | { |
72 | asio::io_context io; | 72 | asio::io_context io; |
73 | printer p(io); | 73 | printer p(io); |
74 | -// std::thread t(std::bind(&asio::io_context::run, &io)); | ||
75 | std::thread t([&io]{io.run();}); | 74 | std::thread t([&io]{io.run();}); |
76 | io.run(); | 75 | io.run(); |
77 | t.join(); | 76 | t.join(); |