Re: [APC-DEV] Spinlock code

From: Date: Mon, 11 Dec 2006 21:44:29 +0000
Subject: Re: [APC-DEV] Spinlock code
References: 1 2 3 4  Groups: php.apc.dev 
Request: Send a blank email to php-apc-dev+get-36@lists.php.net to get a copy of this message
Rasmus Lerdorf wrote: > Jacques Marneweck wrote: >> 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? > > I think it will have to continue to be a compile-time option in order to > avoid introducing the overhead of a runtime check on each and every lock. Couldn't you virtualize it by setting up a lock operations interface structure and having each of the different lock types implement it in their own way, and then set the active lock structure at runtime? George

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