Re: [APC-DEV] Spinlock code
| From: | Jacques Marneweck | Date: | Mon, 11 Dec 2006 21:18:42 +0000 |
| Subject: | Re: [APC-DEV] Spinlock code | ||
| References: | 1 2 | Groups: | php.apc.dev |
| Request: | Send a blank email to php-apc-dev+get-34@lists.php.net to get a copy of this message | ||
Brian Shire wrote:
>
> I'd be interested in doing this, assuming no one wants to jump up and
> do it first. I have pthread mutex locking support that I would like
> to finish up first. (as a better alternative to the futex locking).
>
Hi Guys,
Will we be able to choose a different locking scheme via the php.ini?
Regards
--jm
> On Dec 10, 2006, at 6:18 PM, Rasmus Lerdorf wrote:
>
>> Anybody feel like taking a shot at implementing spinlocks? I have been
>> looking through the Postgres-8.2 code and I talked a bit with Bruce
>> Momjian about their implementation and I think we could lift a good
>> amount of code to get portable spinlocks from them.
>>
>> See:
>>
>> postgresql-8.2.0/src/include/storage/s_lock.h
>>
>> And also see how they are used in:
>>
>> postgresql-8.2.0/src/backend/storage/lmgr/lwlock.c
>>
>> PostgreSQL is completely BSD-licensed, so it is a good place to steal
>> code from.
>>
>> -Rasmus
>>
>> --APC Development Mailing List (http://pecl.php.net/APC)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
> -Brian Shire
> shire@facebook.com
> shire@php.net
> aim: int80h
>
> --APC Development Mailing List (http://pecl.php.net/APC)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
Jacques Marneweck
http://www.powertrip.co.za/
http://www.powertrip.co.za/blog/
#include <std/disclaimer.h>