|
Boost Users : |
From: Christian Henning (chhenning_at_[hidden])
Date: 2006-01-27 17:46:36
This is even simpler. Is there is reason for "boost::ref(*this)" ?
class Simple
{
Simple() : th( boost::bind( run, this ))
{}
void run()
{
for(;;){
//Thread's work goes here.
}
}
private:
boost::thread th;
};
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net