Boost logo

Boost Users :

From: Kevin Heifner (heifner_k_at_[hidden])
Date: 2006-03-05 14:24:29


Olaf van der Spek wrote:
> On 3/4/06, Kevin Heifner <heifner_k_at_[hidden]> wrote:
>> boost::scoped_ptr<boost::thread> m_thread;
>> m_thread.reset(new boost::thread(boost::bind(&Cdns_worker::run,
>> this));
>
> But that requires me to use new.

I also prefer to avoid its use anywhere that I can. Of course
the thread group is new'ing for you if you use it.

>>> And are there any boost::thread examples?
>>> I couldn't find them in the documentation.
>> C:\boost_1_33_1\libs\thread\example\*.cpp
>
> I searched at http://boost.org/doc/html/threads.html and don't see
> examples mentioned. Are they not linked in the online documentation?

Not that I saw.

KevinH

-- 
Kevin Heifner  heifner @ ociweb.com  http://heifner.blogspot.com
           Object Computing, Inc. (OCI) www.ociweb.com

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