Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <thread>
- #include <boost/thread/tss.hpp>
- class Run{
- public:
- void operator()() const{
- }
- private:
- boost::thread_specific_ptr<int> local;
- };
- int main(int argc, char *argv[]){
- Run run;
- thread t(run);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement