Re: [APC-DEV] Spinlock code
[email protected] (Jacques Marneweck) Mon, 11 Dec 2006 23:18:42 +0200
| Newsgroups | php.apc.dev |
|---|---|
| Message-ID | <[email protected]> |
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 > [email protected] > [email protected] > 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>