Boost logo

Boost :

From: Pete Becker (petebecker_at_[hidden])
Date: 2002-08-06 11:47:27


At 07:35 PM 8/6/2002 +0200, Yitzhak Sapir wrote:
> > -----Original Message-----
> > From: Pete Becker [mailto:petebecker_at_[hidden]]
> > Sent: Tuesday, August 06, 2002 5:29 PM
> > To: boost_at_[hidden]; boost_at_[hidden]
> > Subject: RE: [boost] Re: Re: Threads & Exceptions
> >
> >
> > At 05:57 PM 8/6/2002 +0200, Yitzhak Sapir wrote:
> > >One of the things I like about the Boost.Threads model which
> > does not have
> > >a virtual run() function is that it makes you think about
> > bugs like what I
> > >think is a bug in the above code, where run(), a virtual
> > function could
> > >continue running and accessing the descendant of oo_thread after the
> > >destructor of the oo_thread's descendant has been called,
> > but before pt
> > >has been destructed.
> >
> > Of course, that's easily detected in the base class's destructor.
> >
>
>It causes access violations in the run() function.

Only if you allow it to continue running.

        -- Pete

Dinkumware, Ltd.
"Genuine Software"


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk