apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@rkbloom.net
Subject Re: testglobalmutex.c
Date Mon, 15 Mar 2004 19:42:33 GMT
Quoting Aaron Bannert <aaron@clove.org>:

> 
> On Mar 15, 2004, at 11:30 AM, rbb@rkbloom.net wrote:
> > Yeah, but rather than add a showstopper, I am just going to fix this 
> > today.  It
> > is on my list of things to fix ASAP.
> 
> Part of me wishes we didn't have the lock mechanism in the
> main apr_*_mutex_create() functions, so that they could just be
> fully portable. Then we could move the lockmech stuff into
> apr_*_mutex_create_np() and child_init_np() functions.

That just complicates the API.  To make the current APIs fully portable, just
use APR_DEFAULT_LOCK (or whatever its called).  Having two different APIs for
the same operation always bothers me, unless you are using a language with
function overloading, and then it's cool.

Ryan



Mime
View raw message