[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: virtual ~CWaiter()?
- To: "SPTK discussion" <sptk@total-knowledge.com>
- Subject: Re: virtual ~CWaiter()?
- From: "Alexey Parshin" <alexeyp@gmail.com>
- Date: Fri, 12 Dec 2008 17:23:49 +1100
- Delivered-to: mailing list sptk@total-knowledge.com
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=j5WCxEy6LNeJ9CW00kCtcAnknUBzHW9O9uOR5KVl9ps=; b=NAIh66nsZz83NRU8TvUXnDGf26VXQprfTXFXRQqC/rMd2plnL4b5iNpM3sBLB0ESHI Q+H7p70fdWAAEyune5+/hvU7LEuYeqPoOeo+2g0tgNFZ7ZXCiLy2dawjr/9TsYLMqFt1 0jeK7c8E5PMRXUrH6EmDfCqvtHD+xj3Ykg+ZY=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=cb8NWttOCevpqplePJO/793lWDDyf6H9ERcD4H0iFuRxkW7HdEdIGSEdmRqzdNx+QO XqcRKuI1/71LtPnWdY32i7Lrar5xxklQxpdTWII+RW0hD3VwdCWTDkthi9yV6J0DVU4z Y1A43FHxG3rxoauxZTQDXmMYYwOfiDN6veaBo=
- In-reply-to: <49414573.7060002@total-knowledge.com>
- Mailing-list: contact sptk-help@total-knowledge.com; run by ezmlm
- References: <49414573.7060002@total-knowledge.com>
Several compilers suggest: If the class has anything virtual - it should
have virtual dtor. One of such compilers is GCC 3.4..3.6 (IIRC).
I'm not sure - why cppserv hangs with that change. But, it's possible that
indicates some problem in cppserv. We can take virtual out, but it wouldn't
fix that problem.
2008/12/12 Ilya A. Volynets-Evenbakh <ilya@total-knowledge.com>
> Hey. I just noticed that you made CWaiter destructor virtual.
> I also noticed that it makes cppserv under valgrind hang while
> accepting requests.
>
> Before I dive any further, why did you decide to make it virtual?
>
> Ilya.
>
>
--
Alexey Parshin,
http://www.sptk.net
List hosted by Total Knowledge
Authoright © Total Knowledge: 2005