Date: Wed, 9 Jun 2004 20:22:52 +0200 From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> Cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern kern_proc.c Message-ID: <20040609182252.GW12007@darkness.comp.waw.pl> In-Reply-To: <200406091751.i59HpjSs053220@khavrinen.lcs.mit.edu> References: <20040609.100413.118633043.imp@bsdimp.com> <55929.1086798000@critter.freebsd.dk> <200406091629.i59GTnCx052623@khavrinen.lcs.mit.edu> <20040609173747.GT12007@darkness.comp.waw.pl> <200406091751.i59HpjSs053220@khavrinen.lcs.mit.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
--+dH9khzwljbvYE07 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 09, 2004 at 01:51:45PM -0400, Garrett Wollman wrote: +> <<On Wed, 9 Jun 2004 19:37:47 +0200, Pawel Jakub Dawidek <pjd@FreeBSD.or= g> said: +>=20 +> > No, it is still wrong. The only good way is green's way. +> > You cannot destroy object even if you held its lock, because another +> > thread can sleep on this lock and it will be destroyed under it. +>=20 +> Another thread cannot sleep on this lock because it does not have a +> reference to it. Your hypothetical list of elements counts as a +> reference. Correct! I was wrong, sorry for the noise. --=20 Pawel Jakub Dawidek http://www.FreeBSD.org pjd@FreeBSD.org http://garage.freebsd.pl FreeBSD committer Am I Evil? Yes, I Am! --+dH9khzwljbvYE07 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAx1V8ForvXbEpPzQRAoVSAJ42TWzZDskkQMnCEiT20n5+AXbp7ACeKO8h 7ztxXqKsfEXgtAU1+Go++so= =HD/n -----END PGP SIGNATURE----- --+dH9khzwljbvYE07--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040609182252.GW12007>