Advertisement
dooly386

boost thread sample

May 14th, 2019
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1.         auto thf = []()->bool
  2.         {
  3.             for(int i=0;i<100;i++)
  4.             {
  5.                 printf("thf %d",i++);
  6.             }
  7.             return false;
  8.         };
  9.  
  10.         boost::thread thread = boost::thread(thf);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement