cvs commit: src/sys/kern kern_proc.c
Garrett Wollman
wollman at khavrinen.lcs.mit.edu
Wed Jun 9 17:52:05 GMT 2004
<<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.
-GAWollman
More information about the cvs-src
mailing list