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

Re: svn commit: r1849445 - /subversion/trunk/subversion/bindings/cxx/src/aprwrap/impl.cpp

From: Branko Čibej <brane_at_apache.org>
Date: Fri, 21 Dec 2018 00:51:41 +0100

On 21.12.2018 00:49, brane_at_apache.org wrote:
> Author: brane
> Date: Thu Dec 20 23:49:25 2018
> New Revision: 1849445
>
> URL: http://svn.apache.org/viewvc?rev=1849445&view=rev
> Log:
> Use the standard call_once pattern to initialize the SVN++ global pool.
>
> * subversion/bindings/cxx/src/aprwrap/impl.cpp:
> - Include <mutex>
> - Do not include apr_time.h or private/svn_atomic.h.
> (Pool::get_root_pool): Replace manual atomic initialization crud with
> std::call_once and std::once_flag.

And this is where modern C++ really starts to shine.

-- Brane
Received on 2018-12-21 00:51:50 CET

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.