I am just trying the boost threads example from the link.
I have a few questions.
2) Why does the count object get copied so many times? (i tried to write a copy constructor into count to see the id value)
3) I tried to add setstacksize in boost code and recompile. Is it a better way to do it?
Thanks in advance.
----- Original Message ----
From: Moshe Matitya <Moshe.Matitya@Kayote.com>
To: boost-users@lists.boost.org
Sent: Tuesday, December 12, 2006 3:40:03 AM
Subject: Re:
[Boost-users] HowTo Pass arguments to boost threads?
Forever Kid wrote:
>
> What is the method boost prefers to pass arguments to boost
> threads? (such as a pointer to some class
> object)
>
> I saw the class thread_specific_ptr.
> Is thread_specific_ptr designed for this purpose?
>
> Is there a recommended site with boost examples to check out?
> Boost has good documentation, although I prefer to learn by
> example and use strict documentation as I become more experienced.
>
> Thanks much,
> Graham
Take a look this introductory article on Boost.Threads by Bill Kempf:
http://www.ddj.com/184401518It addresses the question you're asking in a very clear, straightforward
manner, with
examples.
Moshe
_______________________________________________
Boost-users mailing list
Boost-users@lists.boost.org
http://listarchives.boost.org/mailman/listinfo.cgi/boost-users