Re: [APC-DEV] Spinlock code

[email protected] (Brian Shire) Mon, 11 Dec 2006 10:35:21 -0800
Newsgroups php.apc.dev
Message-ID <[email protected]>
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).

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
  [email protected]
  [email protected]
  aim: int80h