apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Orton <jor...@redhat.com>
Subject Re: RFC: nptl runtime enforcement
Date Mon, 02 Jul 2007 08:44:49 GMT
On Sat, Jun 30, 2007 at 08:47:59PM -0300, Davi Arnaut wrote:
> Posting to the list before committing since this may be a little bit
> controversial.
> 
> The patch adds a new argument to the --enable-threads option, which
> enables a nptl-only build of apr. This enables the build process to make
> better assumptions regarding the behavior (and speed) of a few lock
> primitives (ie: apr_posixsem_is_global, much faster on nptl for
> inter-process mutexes).
> 
> The patch still needs some tweaking here and there, but any comments or
> feedback would be greatly appreciated.

Tying this to the name of the particular threading implementation seems 
ugly; if all you want to do is enable apr_posixsem_is_global then why 
not just use a hint in apr_hints.m4 for Linuxes >= 2.6?

(FWIW, there are more considerations than speed when choosing an 
inter-process locking mechanism: 
http://marc.info/?l=apr-dev&m=108720968023158&w=2)

joe

Mime
View raw message