[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: APR feature idea: named global mutex retrieval

From: Peter N. Lundblad <peter_at_famlundblad.se>
Date: 2005-04-15 21:45:56 CEST

On Thu, 14 Apr 2005, Greg Hudson wrote:

> My idea is to provide an APR interface like:
>
> apr_status_t apr_thread_mutex_get_named(apr_thread_mutex_t **mutex,
> const char *name);
>
> which would create or fetch from a global hash table a mutex by name.
> APR can use a mutex (presumably one created by apr_initialize) to
> serialize access to the hash table.
>
This idea is so simple and ellegant! My only concern is about contention
if that function is used much (say every function in a library has to use
it to ensure it was initialized). That might be over-paranoid, however.

I think it is a good idea.

Regards,
//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Apr 15 21:40:30 2005

This is an archived mail posted to the Subversion Dev mailing list.