$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-users] boost thread with class
From: Philipp Kraus (philipp.kraus_at_[hidden])
Date: 2012-12-30 06:39:39
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