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

Re: thread safe

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Tue, 04 Sep 2012 22:24:10 +0200

Attached is my first draft of the new svn_config_dup() API.

* it does not return an svn_error_t but the duplicate hash directly. The
only API call that could return an error is svn_config_create() but that
API also returns SVN_NO_ERROR unconditionally (for now at least).
* no error checking is done for now, will add some checks for failed
memory allocations later.
* hash keys are duplicated as well (allocated in the passed pool)

Please have a look at this. I think it's correct, at least my first
tests show that it works and solves my problem in TSVN with multiple
threads as well.

be back tomorrow...

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net

Received on 2012-09-04 22:24:47 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.