Date: Wed, 23 Dec 2009 22:12:19 -0500 From: Alexander Kabaev <kabaev@gmail.com> To: David Xu <davidxu@freebsd.org> Cc: threads@freebsd.org Subject: Re: first patch for process-shared semaphore Message-ID: <20091223221219.4416cef6@kan.dnsalias.net> In-Reply-To: <4B32CADA.4010407@freebsd.org> References: <4B317741.8080004@freebsd.org> <20091223074707.2a7ca9d6@kan.dnsalias.net> <4B32C25A.8040703@freebsd.org> <20091223203539.400bbfda@kan.dnsalias.net> <4B32CADA.4010407@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/Q1pKAvMK=kns27.hzjBik+8 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Thu, 24 Dec 2009 09:58:50 +0800 David Xu <davidxu@freebsd.org> wrote: > Alexander Kabaev wrote: > > On Thu, 24 Dec 2009 09:22:34 +0800 > > David Xu <davidxu@freebsd.org> wrote: > >> libthr does not require semaphore, it implements semaphore, > >> it is easier than other ways to implement the process-shared. > >> > > Let me rephrase: I do not think semaphores belong in libthr. They > > should be either in libc or in librt. > >=20 > >=20 > OK, does others really implement semaphore in librt ? > unfortunately, the librt already requires libpthread to implement > SIGEV_THREAD. I retract that. It appears that there is no consistency - Solaris put these into libc, Linux into libpthread ans SUSv2 hints that these belong with realtime functions. libthr is fine. --=20 Alexander Kabaev --Sig_/Q1pKAvMK=kns27.hzjBik+8 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) iD8DBQFLMtwXQ6z1jMm+XZYRAsYhAKCKoVhQA16GT2PSKkoIdMjs53CLmQCffyWV ZwV0bNkdFJ5aCCveMhASsjc= =4hAT -----END PGP SIGNATURE----- --Sig_/Q1pKAvMK=kns27.hzjBik+8--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091223221219.4416cef6>