Date: Wed, 9 Jun 2004 13:51:45 -0400 (EDT) From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> To: Pawel Jakub Dawidek <pjd@FreeBSD.org> Cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern kern_proc.c Message-ID: <200406091751.i59HpjSs053220@khavrinen.lcs.mit.edu> In-Reply-To: <20040609173747.GT12007@darkness.comp.waw.pl> References: <20040609.100413.118633043.imp@bsdimp.com> <55929.1086798000@critter.freebsd.dk> <200406091629.i59GTnCx052623@khavrinen.lcs.mit.edu> <20040609173747.GT12007@darkness.comp.waw.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
<<On Wed, 9 Jun 2004 19:37:47 +0200, Pawel Jakub Dawidek <pjd@FreeBSD.org> said: > 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. 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. -GAWollman
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406091751.i59HpjSs053220>