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

Re: os.wait in svntest.main.copy_repos?

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2007-10-18 01:11:06 CEST

"David Glasser" <glasser@davidglasser.net> writes:

> On 10/17/07, Philip Martin <philip@codematters.co.uk> wrote:
>> "David Glasser" <glasser@davidglasser.net> writes:
>>
>> > Oh, and also --parallel is broken: it makes a bunch of threads, each
>> > of which call popen3 and then wait, but there's no guarantee that the
>> > test they wait on will be the test they popen3'd.
>>
>> It also modifies an array in multiple threads without any locking; I
>> posted a mutex patch but then gave up when I encountered the wait
>> problem.
>
>>From searching, it does appear that .append on a list should be
> atomic.

It's possible, I don't know much about Python data structures. I can
tell you that my mutex patch did *not* solve the problem.

> However, I think we'll be happier if we just change it to use
> Queue. Will work on that now...

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 18 01:11:32 2007

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.