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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] 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 > /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. > > http://people.freebsd.org/~davidxu/patch/shared_semaphore_1.patch > > > David Xu > > _______________________________________________ > 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. -- Alexander Kabaev [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.13 (FreeBSD) iD8DBQFLMhFPQ6z1jMm+XZYRAgwgAJ9O5X+csnvgT6dr7aBHBEcsKom0fwCgpsSa dSJqIqMI9Fr50JqB0WdpiWw= =tnF2 -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091223074707.2a7ca9d6>
