Advertisement
Guest User

Untitled

a guest
Feb 5th, 2012
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <thread>
  2. #include <boost/thread/tss.hpp>
  3.  
  4. class Run{
  5.   public:
  6.     void operator()() const{
  7.     }
  8.  private:
  9.     boost::thread_specific_ptr<int> local;
  10. };
  11.  
  12.  
  13. int main(int argc, char *argv[]){
  14.   Run run;
  15.   thread t(run);
  16.   return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement