How to do proper locking

David Malone dwmalone at maths.tcd.ie
Thu Aug 4 19:06:13 GMT 2005


On Thu, Aug 04, 2005 at 06:50:12PM +0200, Hans Petter Selasky wrote:
> 2) nonblocking: increment some other refcount that the
>    callback checks before accessing any data.

I think people usually call this something like a "generation count".
This sort of scheme used to be used for vnodes in FreeBSD. If you
look through the archives for people talking about type-stable
storage, you'll probably find some details.

	David.


More information about the freebsd-hackers mailing list