30 Dec
2012
30 Dec
'12
11:39 a.m.
Hello, I use a thread group for creating a blocking thread calculation. Each thread is created with a boost::bind to a member function, but I would like to create a own class for the thread eg class myThread { public some methods private some properties } The group should be boost::thread_group g; for(int i=0; i < 10; i++) g.add( myThread( i ) ) g.join_all(); Which structure must be implementated for the class myThread and from which class must be derived? Thanks Phil