Date: Mon, 5 Mar 2001 22:48:51 -0800 From: Jason Evans <jasone@canonware.com> To: Bosko Milekic <bmilekic@FreeBSD.org> Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/kern kern_sx.c src/sys/sys sx.h Message-ID: <20010305224851.L45981@canonware.com> In-Reply-To: <200103060617.f266H7u69208@freefall.freebsd.org>; from bmilekic@FreeBSD.org on Mon, Mar 05, 2001 at 10:17:06PM -0800 References: <200103060617.f266H7u69208@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Mar 05, 2001 at 10:17:06PM -0800, Bosko Milekic wrote: > bmilekic 2001/03/05 22:17:06 PST > > Modified files: > sys/kern kern_sx.c > sys/sys sx.h > Log: > - Add sx_descr description member to sx lock structure We already have access to three copies of this, in the mutex and in the cv's. There's really no need to embed a fourth copy in the sx structure. =) sx->sx_descr can instead be sx->sx_lock.description (there doesn't appear to be a way to get at this via the mutex API, so this is API abuse) or cv_wmesg(&sx->sx_shrd_cv) or cv_wmesg(&sx->sx_excl_cv). Jason To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010305224851.L45981>