Boost logo

Boost Users :

From: Sohail Somani (s.somani_at_[hidden])
Date: 2007-02-07 15:16:23


> -----Original Message-----
> From: boost-users-bounces_at_[hidden]
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of
> Joshua ChaitinPollak
>
> Hello,
>
> I have a question about Boost.Thread. I am trying to create a class
> which upon instantiation creates a thread based upon itself,
> and then
> on destruction, stops the thread and cleans up after itself.
> A simple
> example is below. Is this possible, and if not, what alternatives do
> I have?

It should be possible the way you've outlined it except for the fact
that you try to initialize a pointer with an unrelated type and also
never initialize the background thread. Are there specific problems that
you are having?


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