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

Re: Thread issues in svnserve

From: Ivan Zhakov <ivan_at_visualsvn.com>
Date: Thu, 9 May 2013 20:41:01 +0400

On Thu, May 9, 2013 at 8:38 PM, Ivan Zhakov <ivan_at_visualsvn.com> wrote:
> On Thu, May 9, 2013 at 8:10 PM, Philip Martin
> <philip.martin_at_wandisco.com> wrote:
>> Ivan Zhakov <ivan_at_visualsvn.com> writes:
>>
>>> But currently APR doesn't access apr_threadattr_t from worker thread
>>> and doesn't need access to apr_thread_t from main thread. So using
>>> iterpool for apr_threadattr_t and connection_pool for apr_thread_t
>>> fixes problem, but only with current APR implementation.
>>
>> I don't think it works. There are two problems. The first problem:
>>
> It works because apr_thread_create() currently doesn't access memory
> allocated in connection_pool after thread created.
>
Oops, this is true only for win32 implementation. unix implementation
allocated pthread_t structure from this pool.

-- 
Ivan Zhakov
CTO | VisualSVN | http://www.visualsvn.com
Received on 2013-05-09 18:41:53 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.