Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jun 2009 09:36:42 +0300
From:      Vlad Galu <dudu@dudu.ro>
To:        Ivan Voras <ivoras@freebsd.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Unnamed POSIX shared semaphores
Message-ID:  <ad79ad6b0906082336s7253da7ey691cd46f00b684a0@mail.gmail.com>
In-Reply-To: <h0j1qa$umk$1@ger.gmane.org>
References:  <ad79ad6b0906010833y20042080td1ebe0d3bfffbdc5@mail.gmail.com>  <20090601161903.GA40377@stack.nl> <4A24457C.6060100@FreeBSD.org>  <200906020842.42330.jhb@freebsd.org> <h0j1qa$umk$1@ger.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jun 8, 2009 at 3:57 PM, Ivan Voras<ivoras@freebsd.org> wrote:
> On a completely unrelated subject I was reading about PHP APC cache
> where they have the same need - cross-process locking with locks
> embedded in data structures and they have adopted userland spinlock code
> from PostgreSQL:
>
> http://www.scribd.com/doc/3288293/brian-shireapc-facebook
>
> (spin)locks are not the same as sempahores but maybe it will help the OP
> or anyone else trying to implement this feature:
>
> http://cvs.php.net/viewvc.cgi/pecl/apc/pgsql_s_lock.h?revision=3.4&view=markup
>
> http://cvs.php.net/viewvc.cgi/pecl/apc/pgsql_s_lock.c?revision=3.3&view=markup

Thanks, Ivan. I'll take a better look at this after our first release,
which is due in a couple of weeks. Right now the team efforts aren't
focused on portability, so it's a low priority issue, but something
we'd definitely like to have in the future.



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