Re: [APC-DEV] Spinlock code
[email protected] (George Schlossnagle) Mon, 11 Dec 2006 16:44:29 -0500
| Newsgroups | php.apc.dev |
|---|---|
| Message-ID | <[email protected]> |
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