From: Christian Henning (chhenning_at_[hidden])
Date: 2006-07-17 17:30:27


Please use a smart pointer.

in class declaration:

  typedef boost::scoped_ptr<boost::thread> tThread_Ptr;
  tThread_Ptr _spThread;

in class constructor or wherever:

       _spThread.reset( new boost::thread( boost::bind( _run
                                                 , this )));

Regards,
Christian