From owner-cvs-all Mon Jan 13 23:26:27 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7151237B401; Mon, 13 Jan 2003 23:26:26 -0800 (PST) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27A4B43F1E; Mon, 13 Jan 2003 23:26:26 -0800 (PST) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id D168FAE216; Mon, 13 Jan 2003 23:26:25 -0800 (PST) Date: Mon, 13 Jan 2003 23:26:25 -0800 From: Alfred Perlstein To: Tim Robbins Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc_r/man sem_init.3 Message-ID: <20030114072625.GL33821@elvis.mu.org> References: <200301140412.h0E4CXTa093756@repoman.freebsd.org> <20030114053331.GK33821@elvis.mu.org> <20030114180615.A91716@dilbert.robbins.dropbear.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030114180615.A91716@dilbert.robbins.dropbear.id.au> User-Agent: Mutt/1.4i Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Tim Robbins [030113 23:06] wrote: > > Ok, I guess I didn't test it enough. I had separate procs sharing the > same address space, and didn't have time to try doing it with SHM. > I don't think we actually need to be able to share mutexes/condvars > between processes, though, since the only time semaphores initialised > with pshared != 0 are locked is in sem_destroy(). Anyway, I'll back out > the last change to sem_init.3 until sem_t becomes a plain old struct. If you check the mailing list archives someone pasted the solaris structures for sem_t. Solaris uses pthread mutexes and condvars, they seem to be able to share them between processes. I think the idea is they do something along the line of linux's "futex". Basically a userlevel mutex with kernel assistance. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message