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

Re: attn: ghudson; FSFS and multi-threading on Unix broken?

From: Peter N. Lundblad <peter_at_famlundblad.se>
Date: 2005-04-05 21:21:49 CEST

On Tue, 5 Apr 2005, Greg Hudson wrote:

> I'm guessing what we'll wind up doing is using apr_file_lock() under
> Windows, and a global mutex with the fcntl mechanism specified under
> Unix. But obviously APR is not providing quite what we want here.
>
But won't we have the same initialization problems as I scetched in my
original mail? A global_mutex creates a thread mutex internally, so you
hae to use the same global_mutex for each thread for this to work. Then,
is there really a benefit to using this global_mutex instead of just
wrapping the apr_lock_file with locking/unlocking a mutex with thread
scope?

Regards,
//Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Apr 6 18:38:20 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.