Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Dec 2009 07:47:07 -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:  <20091223074707.2a7ca9d6@kan.dnsalias.net>
In-Reply-To: <4B317741.8080004@freebsd.org>
References:  <4B317741.8080004@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_/vz9bE1U_Wrr212QsM0UsFxx
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

On Wed, 23 Dec 2009 09:49:53 +0800
David Xu <davidxu@freebsd.org> wrote:

> This is my first attempt to make process-shared mutex work, this means
> you can mmap(MAP_SHARED) a memory area, and put semaphore there,
> or you can sem_open a named semaphore, and just use it between
> processes, the named semaphore uses file system and mmap(), directory=20
> /tmp/.semaphore is used as IPC directory, any named semaphore
> locates in the directory. old semaphore implementation still exists
> to make it binary compatible, it uses symbol version.
>=20
> http://people.freebsd.org/~davidxu/patch/shared_semaphore_1.patch
>=20
>=20
> David Xu
>=20
> _______________________________________________
> freebsd-threads@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-threads
> To unsubscribe, send any mail to
> "freebsd-threads-unsubscribe@freebsd.org"

Hi,

is libthr really required for semaphores? Semaphore API seem
orthogonal to pthreads. None of the man pages on OpenGroup size
indicate where these belong, but they put sem_open & friends into
REALTIME group and Linux has them in librt.

--=20
Alexander Kabaev

--Sig_/vz9bE1U_Wrr212QsM0UsFxx
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13 (FreeBSD)

iD8DBQFLMhFPQ6z1jMm+XZYRAgwgAJ9O5X+csnvgT6dr7aBHBEcsKom0fwCgpsSa
dSJqIqMI9Fr50JqB0WdpiWw=
=tnF2
-----END PGP SIGNATURE-----

--Sig_/vz9bE1U_Wrr212QsM0UsFxx--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091223074707.2a7ca9d6>