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

Re: svn commit: r1004286 - in /subversion/trunk: ./ subversion/libsvn_subr/io.c

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Wed, 20 Oct 2010 13:49:28 +0100

Ramkumar Ramachandra <artagnon_at_gmail.com> writes:

> Hi Philip,
>
> Philip Martin writes:
>> Most of the functions don't share any state between threads, so they
>> have no atomic issues. svn_io_temp_dir is one of the few that does,
>> so it uses svn_atomic__init_once. I think the file perms stuff should
>> also use it.
>
> I see. Could you point me to some functions that share some state
> between threads or some sort of manual? I want to see how to do it
> right- I'm not satisfied with my current understanding.

Generally it would be functions that access a static variable, or that
make calls to library initialisation functions.

-- 
Philip
Received on 2010-10-20 14:50:16 CEST

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.