Re: new : iperf servers that stay alive
On Wed, 5 Feb 2003 Marc.Herbert --at-- ens-lyon.fr wrote:
> > In Iperf's case a thread is responsible for the Thread class and
> > any classes that are allocated along with that (Server, PerfSocket,
> > Socket, etc). If you call pthread_exit from within the deconstructor of
> > Thread then it will not release all of these resources.
>
>
> Agreed (I think this was more or less written in the comments in my
> patch)
>
> In fact, it's depending on the inheritance order. But I agree with you
> that life is too short to depend on inheritance order.
No, inheritance order only allows for more not ALL of the resources to be
freed.
Kevin