Searched refs:chopstick (Results 1 – 2 of 2) sorted by relevance
105 class chopstick {}; class107 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()
4 … before eating. Eating and thinking are implemented with `sleep()`. The chopstick positions are re…