Lines Matching refs:fiber
222 boost::fibers::fiber launch( Fn && func, std::string const& name, int priority) { in launch()
223 boost::fibers::fiber fiber( func); in launch() local
224 priority_props & props( fiber.properties< priority_props >() ); in launch()
227 return fiber; in launch()
250 void change_fn( boost::fibers::fiber & other, in change_fn()
294 boost::fibers::fiber low( launch( yield_fn, "low", 1) ); in main()
295 boost::fibers::fiber med( launch( yield_fn, "medium", 2) ); in main()
296 boost::fibers::fiber hi( launch( yield_fn, "high", 3) ); in main()
308 boost::fibers::fiber a( launch( yield_fn, "a", 0) ); in main()
309 boost::fibers::fiber b( launch( yield_fn, "b", 0) ); in main()
310 boost::fibers::fiber c( launch( yield_fn, "c", 0) ); in main()
323 boost::fibers::fiber low( launch( [&barrier](){ barrier_fn( barrier); }, "low", 1) ); in main()
324 boost::fibers::fiber med( launch( [&barrier](){ barrier_fn( barrier); }, "medium", 2) ); in main()
325 boost::fibers::fiber hi( launch( [&barrier](){ barrier_fn( barrier); }, "high", 3) ); in main()
338 boost::fibers::fiber c( launch( [&barrier](){ barrier_fn( barrier); }, "c", 1) ); in main()
339 boost::fibers::fiber a( launch( [&c,&barrier]() { change_fn( c, 3, barrier); }, "a", 3) ); in main()
340 boost::fibers::fiber b( launch( [&barrier](){ barrier_fn( barrier); }, "b", 2) ); in main()