cvs commit: src/sys/kern kern_proc.c

Pawel Jakub Dawidek pjd at FreeBSD.org
Wed Jun 9 18:23:22 GMT 2004


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 at 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.

Correct! I was wrong, sorry for the noise.

-- 
Pawel Jakub Dawidek                       http://www.FreeBSD.org
pjd at FreeBSD.org                           http://garage.freebsd.pl
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20040609/aa839e8d/attachment-0001.bin


More information about the cvs-src mailing list