|
Boost : |
From: Greg Colvin (gcolvin_at_[hidden])
Date: 2001-06-27 09:30:25
From: <tamari_at_[hidden]>
> From: "Greg Colvin" <gcolvin_at_[hidden]>
> > [snip]
> >
> > I think I like it, but I'm not seeing an easy way to
> > create a thread object that goes away when the thread
> > exits.
> >
>
> Why can't the the last line of the "Run" function do "delete this" &
Because there is no virtual Run() member.
> and the thread class's destructor kill the native thread ?
Because killing threads is a bad idea.
> Also the thread class should enforce heap-only allocation to
> prevent attempts to "delete" stack-allocated objects.
>
> I think this method can be used to build Java-like thread objects.
>
> Saul
>
>
>
> Info: http://www.boost.org Unsubscribe: <mailto:boost-unsubscribe_at_[hidden]>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk