SHARE
TWEET

Untitled

a guest Feb 5th, 2012 70 Never
  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. }
RAW Paste Data
Top