[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 10:28:52 +0100

Ramkumar Ramachandra <artagnon_at_gmail.com> writes:

> Hi Philip,
>
> [sorry about the delayed reply; was ill]
>
> Philip Martin writes:
>> Ramkumar Ramachandra <artagnon_at_gmail.com> writes:
>> > Hm. I read up a little more about this, but what confuses me is-
>> > shouldn't the rest of the code already be needing this?
>>
>> I don't understand your questions. To what does "rest of the code"
>> refer?
>
> What I meant is that the rest of the functions in io.c should also
> have to handle atomicity. I see svn_io_temp_dir using
> svn_atomic__init_once for example.

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.

-- 
Philip
Received on 2010-10-20 11:29:39 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.