Lines Matching refs:ioc
86 void sleep_increment(io_context* ioc, int* count) in sleep_increment() argument
88 timer t(*ioc, chronons::seconds(2)); in sleep_increment()
114 void start_sleep_increments(io_context* ioc, in start_sleep_increments() argument
118 timer t(*ioc, chronons::seconds(2)); in start_sleep_increments()
122 post(*s, bindns::bind(sleep_increment, ioc, count)); in start_sleep_increments()
123 post(*s, bindns::bind(sleep_increment, ioc, count)); in start_sleep_increments()
124 post(*s, bindns::bind(sleep_increment, ioc, count)); in start_sleep_increments()
132 void io_context_run(io_context* ioc) in io_context_run() argument
134 ioc->run(); in io_context_run()
139 io_context ioc; in strand_test() local
140 strand<io_context::executor_type> s = make_strand(ioc); in strand_test()
143 post(ioc, bindns::bind(increment_without_lock, &s, &count)); in strand_test()
148 ioc.run(); in strand_test()
154 ioc.restart(); in strand_test()
160 ioc.run(); in strand_test()
166 ioc.restart(); in strand_test()
167 post(ioc, bindns::bind(start_sleep_increments, &ioc, &s, &count)); in strand_test()
168 boost::asio::detail::thread thread1(bindns::bind(io_context_run, &ioc)); in strand_test()
169 boost::asio::detail::thread thread2(bindns::bind(io_context_run, &ioc)); in strand_test()
172 timer timer1(ioc, chronons::seconds(3)); in strand_test()
198 ioc.restart(); in strand_test()
213 ioc.run(); in strand_test()
227 ioc.restart(); in strand_test()
232 strand<io_context::executor_type> s2 = make_strand(ioc.get_executor()); in strand_test()
244 io_context ioc; in strand_conversion_test() local
245 strand<io_context::executor_type> s1 = make_strand(ioc); in strand_conversion_test()
260 io_context ioc; in strand_query_test() local
261 strand<io_context::executor_type> s1 = make_strand(ioc); in strand_query_test()
265 == &ioc); in strand_query_test()
302 io_context ioc; in strand_execute_test() local
303 strand<io_context::executor_type> s1 = make_strand(ioc); in strand_execute_test()
309 BOOST_ASIO_CHECK(!ioc.stopped()); in strand_execute_test()
312 ioc.run(); in strand_execute_test()
315 BOOST_ASIO_CHECK(ioc.stopped()); in strand_execute_test()
319 ioc.restart(); in strand_execute_test()
325 BOOST_ASIO_CHECK(!ioc.stopped()); in strand_execute_test()
328 ioc.run(); in strand_execute_test()
331 BOOST_ASIO_CHECK(ioc.stopped()); in strand_execute_test()
335 ioc.restart(); in strand_execute_test()
341 BOOST_ASIO_CHECK(!ioc.stopped()); in strand_execute_test()
344 ioc.run(); in strand_execute_test()
347 BOOST_ASIO_CHECK(ioc.stopped()); in strand_execute_test()
351 ioc.restart(); in strand_execute_test()
352 BOOST_ASIO_CHECK(!ioc.stopped()); in strand_execute_test()
361 BOOST_ASIO_CHECK(!ioc.stopped()); in strand_execute_test()
364 ioc.run(); in strand_execute_test()
367 BOOST_ASIO_CHECK(ioc.stopped()); in strand_execute_test()
371 ioc.restart(); in strand_execute_test()
379 BOOST_ASIO_CHECK(!ioc.stopped()); in strand_execute_test()
382 ioc.run(); in strand_execute_test()
385 BOOST_ASIO_CHECK(ioc.stopped()); in strand_execute_test()
389 ioc.restart(); in strand_execute_test()
398 BOOST_ASIO_CHECK(!ioc.stopped()); in strand_execute_test()
401 ioc.run(); in strand_execute_test()
404 BOOST_ASIO_CHECK(ioc.stopped()); in strand_execute_test()
408 ioc.restart(); in strand_execute_test()
417 BOOST_ASIO_CHECK(!ioc.stopped()); in strand_execute_test()
420 ioc.run(); in strand_execute_test()
423 BOOST_ASIO_CHECK(ioc.stopped()); in strand_execute_test()
427 ioc.restart(); in strand_execute_test()
438 BOOST_ASIO_CHECK(!ioc.stopped()); in strand_execute_test()
441 ioc.run(); in strand_execute_test()
444 BOOST_ASIO_CHECK(ioc.stopped()); in strand_execute_test()
448 ioc.restart(); in strand_execute_test()
459 BOOST_ASIO_CHECK(!ioc.stopped()); in strand_execute_test()
462 ioc.run(); in strand_execute_test()
465 BOOST_ASIO_CHECK(ioc.stopped()); in strand_execute_test()