Home
last modified time | relevance | path

Searched refs:chopstick (Results 1 – 2 of 2) sorted by relevance

/oneTBB/examples/graph/dining_philosophers/
H A Ddining_philosophers.cpp105 class chopstick {}; class
107 typedef std::tuple<oneapi::tbb::flow::continue_msg, chopstick, chopstick> join_output;
200 (void)std::get<1>(out_ports).try_put(chopstick()); in forward()
201 (void)std::get<2>(out_ports).try_put(chopstick()); in forward()
268 std::vector<oneapi::tbb::flow::queue_node<chopstick>> places( in main()
269 num_philosophers, oneapi::tbb::flow::queue_node<chopstick>(g)); in main()
281 places[i].try_put(chopstick()); in main()
H A DREADME.md4 … before eating. Eating and thinking are implemented with `sleep()`. The chopstick positions are re…