Re: [APC-DEV] Spinlock code

From: Date: Mon, 11 Dec 2006 18:35:21 +0000
Subject: Re: [APC-DEV] Spinlock code
References: 1  Groups: php.apc.dev 
Request: Send a blank email to php-apc-dev+get-33@lists.php.net to get a copy of this message
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 shire@facebook.com shire@php.net aim: int80h

« previous php.apc.dev (#33) next »