Lines Matching refs:example
65 boost::packaged_task<int()> example(int_no_params); in main() local
66 boost::future<int> f = example.get_future(); in main()
67 boost::thread task(boost::move(example)); in main()
77 boost::packaged_task<std::string()> example(string_no_params); in main() local
78 boost::future<std::string> f = example.get_future(); in main()
79 boost::thread task(boost::move(example)); in main()
92 boost::packaged_task<std::string(std::string&)> example(string_with_params); in main() local
93 boost::future<std::string> f = example.get_future(); in main()
94 example(ans); in main()
112 boost::packaged_task<std::string(std::string&)> example(string_with_params); in main() local
113 boost::future<std::string> f = example.get_future(); in main()
114 boost::thread task(boost::move(example), boost::ref(ans)); in main()
125 boost::packaged_task<std::string(std::string&)> example in main()
127 boost::future<std::string> f = example.get_future(); in main()
128 boost::thread task(boost::move(example), boost::ref(ans)); in main()
143 …boost::shared_ptr<task_t> example = boost::make_shared<task_t>(boost::bind(&string_with_params, bo… in main() local
144 boost::future<std::string> f = example->get_future(); in main()
145 boost::thread task(boost::bind(&task_t::operator(), example)); in main()
168 …boost::shared_ptr<task_t> example = boost::make_shared<task_t>(boost::bind(&string_with_params, an… in main() local
169 boost::future<std::string> f = example->get_future(); in main()
170 io_service.post(boost::bind(&task_t::operator(), example)); in main()