Unnamed POSIX shared semaphores

Vlad Galu dudu at dudu.ro
Tue Jun 9 06:37:04 UTC 2009


On Mon, Jun 8, 2009 at 3:57 PM, Ivan Voras<ivoras at 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.


More information about the freebsd-stable mailing list