[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: Branko Čibej <brane_at_xbc.nu>
Date: 2005-04-17 22:17:04 CEST

Philip Martin wrote:

>Greg Hudson <ghudson@MIT.EDU> writes:
>
>
>
>>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.
>>
>>Do people think this is a reasonable feature, or have other ideas for
>>how to solve this sort of problem?
>>
>>
>
>The obvious answer on a POSIX like system is to allow static
>initialisation of mutexes, this would probably have to be a separate
>type and not an apr_thread_mutex_t. I don't know whether such a thing
>is possible on Windows, it's absence from APR suggests not.
>
>
It's not, but Windows does a beautiful job with global named mutexes. :)

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Apr 17 22:22:31 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.