Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2012
340
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. tbb::flow::graph g;
  2. tbb::flow::function_node<std::function<void()>> node(g, 1, [](const std::function<void()>){func();});
  3.  
  4. node.try_put([]{std::cout << 1;});
  5. node.try_put([]{std::cout << 2;});
  6. node.try_put([]{std::cout << 3;});
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement