Re: [Boost-users] Boost.Thread contained within a class?

7 Feb
2007
7 Feb
'07
8:16 p.m.
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] 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?
6591
Age (days ago)
6591
Last active (days ago)
0 comments
1 participants
participants (1)
-
Sohail Somani