Boost logo

Boost :

From: Pete Becker (petebecker_at_[hidden])
Date: 2002-08-06 10:28:56


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.

        -- 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